summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-02-14 09:26:13 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-02-14 09:26:13 (GMT)
commitaae3defeecd5a000db33c973f9241d8b9db12c0c (patch)
treeeda2a5a2d45f5a70c2f5d64272ecf2a73f008a15 /Swift/QtUI/QtChatWindow.cpp
parent67087f4374ddca69c4d3d9303e85795f060f50a2 (diff)
downloadswift-contrib-aae3defeecd5a000db33c973f9241d8b9db12c0c.zip
swift-contrib-aae3defeecd5a000db33c973f9241d8b9db12c0c.tar.bz2
Fix rendering of mediated invites
Diffstat (limited to 'Swift/QtUI/QtChatWindow.cpp')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index ed8e632..4cf606c 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -805,7 +805,10 @@ void QtChatWindow::addMUCInvitation(const JID& jid, const std::string& reason, c
reasonString = QString("\"%1\"").arg(P2QSTRING(reason));
}
if (!direct) {
- reasonString += QString("(%1 may not have really sent this invitation)").arg(P2QSTRING(jid.toString()));
+ if (!reasonString.isEmpty()) {
+ reasonString += " ";
+ }
+ reasonString += QString(" (%1 may not have really sent this invitation)").arg(contact_);
}
msgBox.setInformativeText(QString("Accept invitation from %1 to enter %2?\n%3").arg(contact_).arg(P2QSTRING(jid.toString())).arg(reasonString));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);