Adding a Q_ASSERT to see if that catches the remaining selection segfaults
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 16 Aug 2008 21:35:12 +0000 (23:35 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 16 Aug 2008 21:35:33 +0000 (23:35 +0200)
src/qtui/chatscene.cpp

index cb06e74..33a13c5 100644 (file)
@@ -239,6 +239,8 @@ void ChatScene::updateSelection(const QPointF &pos) {
   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));
   }
 }