X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.cpp;h=d09605f0f590a75ff0d6dfe4145f0dbc0fa707a9;hp=940feb7f06edfa4413c3b5f83943e887350c2ea9;hb=d07c7f8e2de851adefcee45049bb1bb19682d0c6;hpb=1736d7414b96efc1189e56f22bd0407989c3a7c9 diff --git a/src/client/networkmodel.cpp b/src/client/networkmodel.cpp index 940feb7f..d09605f0 100644 --- a/src/client/networkmodel.cpp +++ b/src/client/networkmodel.cpp @@ -255,7 +255,7 @@ void BufferItem::removeUserFromCategory(IrcUser *ircUser) { UserCategoryItem *categoryItem = 0; for(int i = 0; i < childCount(); i++) { categoryItem = qobject_cast(child(i)); - if(success = categoryItem->removeUser(ircUser)) { + if((success = categoryItem->removeUser(ircUser))) { if(categoryItem->childCount() == 0) removeChild(i); break; @@ -313,6 +313,11 @@ QString BufferItem::toolTip(int column) const { toolTip.append(tr("Topic: %1").arg(_topic)); } } + if(_ircChannel) { + QString channelMode = _ircChannel->channelModeString(); // channelModeString is compiled on the fly -> thus cache the result + if(!channelMode.isEmpty()) + toolTip.append(tr("Mode: %1").arg(channelMode)); + } } else { toolTip.append(tr("Not active
Double-click to join")); }