summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-05-22 13:19:52 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-05-22 13:19:52 (GMT)
commit6e33c98f97250074045d3928849b3536213df833 (patch)
treec9170c130afedef6d70a3e6796d7aade5980a630 /Swift/QtUI
parent4945e1e38c56811998fa4a8b39c595cb4fbc3d9b (diff)
downloadswift-contrib-6e33c98f97250074045d3928849b3536213df833.zip
swift-contrib-6e33c98f97250074045d3928849b3536213df833.tar.bz2
Allow errors in chats to not claim to be about sent messages.
Resolves: #797 Release-Notes: When failing to enter a room, the error message will no longer wrongly report that you were trying to send a message.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index 5fb2939..32c3067 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -381,7 +381,7 @@ void QtChatWindow::addErrorMessage(const std::string& errorMessage) {
QString errorMessageHTML(Qt::escape(P2QSTRING(errorMessage)));
errorMessageHTML.replace("\n","<br/>");
- messageLog_->addMessage(boost::shared_ptr<ChatSnippet>(new SystemMessageSnippet(QString("<span class=\"error\">" + tr("Couldn't send message: %1") + "</span>").arg(errorMessageHTML), QDateTime::currentDateTime(), false, theme_)));
+ messageLog_->addMessage(boost::shared_ptr<ChatSnippet>(new SystemMessageSnippet("<span class=\"error\">" + errorMessageHTML + "</span>", QDateTime::currentDateTime(), false, theme_)));
previousMessageWasSelf_ = false;
previousMessageWasSystem_ = true;