bug--
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 31 Jul 2008 16:36:10 +0000 (18:36 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 2 Aug 2008 13:17:11 +0000 (15:17 +0200)
src/qtui/chatline.cpp

index 5c8f1cf..65d68bf 100644 (file)
@@ -82,9 +82,8 @@ void ChatLine::setSelected(bool selected, ChatLineModel::ColumnType minColumn) {
       for(int i = minColumn; i <= ChatLineModel::ContentsColumn; i++) item((ChatLineModel::ColumnType)i)->setFullSelection();
       update();
     }
-  }
-  else {
-    quint8 sel = _selection &= 0x80;
+  } else {
+    quint8 sel = _selection & 0x80;
     if(sel != _selection) {
       _selection = sel;
       for(int i = 0; i <= ChatLineModel::ContentsColumn; i++) item((ChatLineModel::ColumnType)i)->clearSelection();