From: Manuel Nickschas Date: Sat, 16 Aug 2008 21:35:12 +0000 (+0200) Subject: Adding a Q_ASSERT to see if that catches the remaining selection segfaults X-Git-Tag: 0.3.0~37 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=5b2f14be0d05db7c02ff0faa6513eb6b471994f0;ds=sidebyside Adding a Q_ASSERT to see if that catches the remaining selection segfaults --- diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index cb06e74c..33a13c51 100644 --- 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; + 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)); } }