summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-09-15 16:46:52 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-09-15 16:47:53 (GMT)
commit8e596c2c0c9155830bb6e00204301bb0333274a5 (patch)
treeb1a01d330ef9fb45c623aaba503ad0e9797c3e91 /Swift/QtUI
parent5159571a0464c28ce376de22faaa52066168a205 (diff)
downloadswift-8e596c2c0c9155830bb6e00204301bb0333274a5.zip
swift-8e596c2c0c9155830bb6e00204301bb0333274a5.tar.bz2
Display useful errors in chats when server doesn't include <text>.
Resolves: #264
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 2955ee4..a927988 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -303,7 +303,7 @@ void QtChatWindow::addErrorMessage(const String& errorMessage) {
QString errorMessageHTML(Qt::escape(P2QSTRING(errorMessage)));
errorMessageHTML.replace("\n","<br/>");
- messageLog_->addMessage(boost::shared_ptr<ChatSnippet>(new SystemMessageSnippet(QString("<span class=\"error\">%1</span>").arg(errorMessageHTML), QDateTime::currentDateTime(), false, theme_)));
+ messageLog_->addMessage(boost::shared_ptr<ChatSnippet>(new SystemMessageSnippet(QString("<span class=\"error\">Couldn't send message: %1</span>").arg(errorMessageHTML), QDateTime::currentDateTime(), false, theme_)));
previousMessageWasSelf_ = false;
previousMessageWasSystem_ = true;