From: Marcus Eggenberger Date: Thu, 10 Jul 2008 14:06:23 +0000 (+0200) Subject: fixing partial BR #208 (no longer showing away message in tool tip if not away) X-Git-Tag: 0.3.0~286 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=6cd775d833522724e1df44ae48e0b8aaf3e63d55 fixing partial BR #208 (no longer showing away message in tool tip if not away) --- diff --git a/src/client/networkmodel.cpp b/src/client/networkmodel.cpp index 1a692ca5..1892ecc2 100644 --- a/src/client/networkmodel.cpp +++ b/src/client/networkmodel.cpp @@ -572,8 +572,11 @@ QString IrcUserItem::toolTip(int column) const { Q_UNUSED(column); QStringList toolTip(QString("%1").arg(nickName())); if(_ircUser->userModes() != "") toolTip[0].append(QString(" (%1)").arg(_ircUser->userModes())); - if(_ircUser->isAway()) toolTip[0].append(" is away"); - if(!_ircUser->awayMessage().isEmpty()) toolTip[0].append(QString(" (%1)").arg(_ircUser->awayMessage())); + if(_ircUser->isAway()) { + toolTip[0].append(" is away"); + if(!_ircUser->awayMessage().isEmpty()) + toolTip[0].append(QString(" (%1)").arg(_ircUser->awayMessage())); + } if(!_ircUser->realName().isEmpty()) toolTip.append(_ircUser->realName()); if(!_ircUser->ircOperator().isEmpty()) toolTip.append(QString("%1 %2").arg(nickName()).arg(_ircUser->ircOperator())); if(!_ircUser->suserHost().isEmpty()) toolTip.append(_ircUser->suserHost());