From a3b64148aa400aae9aad44c99b683151302d9d7a Mon Sep 17 00:00:00 2001 From: romibi Date: Fri, 13 Nov 2015 11:50:14 +0100 Subject: [PATCH] Fix Lambda No default values for Lambda's allowed... --- src/client/networkmodel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/networkmodel.cpp b/src/client/networkmodel.cpp index 2adbe08a..4d49efb2 100644 --- a/src/client/networkmodel.cpp +++ b/src/client/networkmodel.cpp @@ -958,7 +958,7 @@ QString IrcUserItem::toolTip(int column) const } tooltip << "

"; - auto addRow = [&](const QString& key, const QString& value, bool condition = true) { + auto addRow = [&](const QString& key, const QString& value, bool condition) { if (condition) { tooltip << "" << key << "" << value << ""; @@ -971,24 +971,24 @@ QString IrcUserItem::toolTip(int column) const if(!_ircUser->awayMessage().isEmpty()) { awayMessage = _ircUser->awayMessage(); } - addRow(tr("Away Message"), awayMessage); + addRow(tr("Away Message"), awayMessage, true); } addRow(tr("Realname"), _ircUser->realName(), !_ircUser->realName().isEmpty()); addRow(tr("Operator"), _ircUser->ircOperator(), !_ircUser->ircOperator().isEmpty()); addRow(tr("Suser Host"), _ircUser->suserHost(),!_ircUser->suserHost().isEmpty()); addRow(tr("Whois Service Reply"), _ircUser->whoisServiceReply(), !_ircUser->whoisServiceReply().isEmpty()); - addRow(tr("Hostmask"), _ircUser->hostmask().remove(0, _ircUser->hostmask().indexOf("!")+1)); + addRow(tr("Hostmask"), _ircUser->hostmask().remove(0, _ircUser->hostmask().indexOf("!")+1), true); addRow(tr("Operator"), _ircUser->ircOperator(), !_ircUser->ircOperator().isEmpty()); if (_ircUser->idleTime().isValid()) { QDateTime now = QDateTime::currentDateTime(); QDateTime idle = _ircUser->idleTime(); int idleTime = idle.secsTo(now); - addRow(tr("Idling since"), secondsToString(idleTime)); + addRow(tr("Idling since"), secondsToString(idleTime), true); } if (_ircUser->loginTime().isValid()) { - addRow(tr("Login time"), _ircUser->loginTime().toString()); + addRow(tr("Login time"), _ircUser->loginTime().toString(), true); } addRow(tr("Server"), _ircUser->server(), !_ircUser->server().isEmpty()); -- 2.20.1