diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-01 12:19:00 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-01 12:19:00 (GMT) |
commit | 639d4368c9a681b2a7c755a760d6f595ae81230a (patch) | |
tree | 73f52e0a957cc77423f4ace25141038984b98157 /UI/Qt | |
parent | e16c66185e9f633a05911d708e6404d9f741c7b1 (diff) | |
download | swift-639d4368c9a681b2a7c755a760d6f595ae81230a.zip swift-639d4368c9a681b2a7c755a760d6f595ae81230a.tar.bz2 |
Remove '\r' characters before sending message to the chatview.
Diffstat (limited to 'UI/Qt')
-rw-r--r-- | UI/Qt/QtChatView.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/UI/Qt/QtChatView.cpp b/UI/Qt/QtChatView.cpp index cdf0f4e..ab093db 100644 --- a/UI/Qt/QtChatView.cpp +++ b/UI/Qt/QtChatView.cpp @@ -46,6 +46,7 @@ void QtChatView::addMessage(const ChatSnippet& snippet) { content.replace("\\", "\\\\"); content.replace("\"", "\\\""); content.replace("\n", "\\n"); + content.replace("\r", ""); if (previousContinuationElementID_.isEmpty() || !snippet.getAppendToPrevious()) { webPage_->mainFrame()->evaluateJavaScript("appendMessage(\"" + content + "\");"); } |