projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bf7d701
)
Adding a Q_ASSERT to see if that catches the remaining selection segfaults
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 16 Aug 2008 21:35:12 +0000
(23:35 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 16 Aug 2008 21:35:33 +0000
(23:35 +0200)
src/qtui/chatscene.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatscene.cpp
b/src/qtui/chatscene.cpp
index
cb06e74
..
33a13c5
100644
(file)
--- a/
src/qtui/chatscene.cpp
+++ b/
src/qtui/chatscene.cpp
@@
-239,6
+239,8
@@
void ChatScene::updateSelection(const QPointF &pos) {
if(newstart == newend && minColumn == ChatLineModel::ContentsColumn) {
_lines[curRow]->setSelected(false);
_isSelecting = false;
if(newstart == newend && minColumn == ChatLineModel::ContentsColumn) {
_lines[curRow]->setSelected(false);
_isSelecting = false;
+ Q_ASSERT(_selectingItem); // this seems to not always be true, but I have no idea why
+ // adding this assert to make sure the occasional segfault is caused by this
_selectingItem->continueSelecting(_selectingItem->mapFromScene(pos));
}
}
_selectingItem->continueSelecting(_selectingItem->mapFromScene(pos));
}
}