X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.cpp;h=d09605f0f590a75ff0d6dfe4145f0dbc0fa707a9;hb=6fd9179fdc42d12a386fda67af401dff8d6d76d0;hp=940feb7f06edfa4413c3b5f83943e887350c2ea9;hpb=1066294489c2469323a2813b63ae4653d148bbc7;p=quassel.git 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")); }