projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c902a2a
)
fixing client crash on disconnect
author
Marcus Eggenberger
<egs@quassel-irc.org>
Thu, 16 Oct 2008 18:39:51 +0000
(20:39 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Thu, 16 Oct 2008 18:39:51 +0000
(20:39 +0200)
src/qtui/chatscene.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatscene.cpp
b/src/qtui/chatscene.cpp
index
1adea58
..
41032f4
100644
(file)
--- a/
src/qtui/chatscene.cpp
+++ b/
src/qtui/chatscene.cpp
@@
-266,8
+266,7
@@
void ChatScene::rowsAboutToBeRemoved(const QModelIndex &parent, int start, int e
}
}
}
}
- Q_ASSERT(start == 0 || _lines.at(start - 1)->pos().y() + _lines.at(start - 1)->height() == _lines.at(start)->pos().y());
- Q_ASSERT(end + 1 == _lines.count() || _lines.at(end)->pos().y() + _lines.at(end)->height() == _lines.at(end + 1)->pos().y());
+ Q_ASSERT(start == 0 || start >= _lines.count() || _lines.at(start - 1)->pos().y() + _lines.at(start - 1)->height() == _lines.at(start)->pos().y());
// update sceneRect
// when searching for the first non-date-line we have to take into account that our
// update sceneRect
// when searching for the first non-date-line we have to take into account that our