projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9562775
)
fixing crash on disconnect
author
Marcus Eggenberger
<egs@quassel-irc.org>
Tue, 30 Sep 2008 22:29:41 +0000
(
00:29
+0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Tue, 30 Sep 2008 22:29:41 +0000
(
00:29
+0200)
src/qtui/chatscene.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatscene.cpp
b/src/qtui/chatscene.cpp
index
a5f624b
..
7ba9ada
100644
(file)
--- a/
src/qtui/chatscene.cpp
+++ b/
src/qtui/chatscene.cpp
@@
-240,6
+240,10
@@
void ChatScene::rowsAboutToBeRemoved(const QModelIndex &parent, int start, int e
// update sceneRect
// when searching for the first non-date-line we have to take into account that our
// model still contains the just removed lines so we cannot simply call updateSceneRect()
+ if(_lines.isEmpty()) {
+ updateSceneRect(QRectF(0, 0, _sceneRect.width(), 0));
+ return;
+ }
int numRows = model()->rowCount();
QModelIndex firstLineIdx;
int row = -1;