diff options
Diffstat (limited to 'UI/Qt/QtChatView.cpp')
-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 b6687d0..cdf0f4e 100644 --- a/UI/Qt/QtChatView.cpp +++ b/UI/Qt/QtChatView.cpp @@ -43,6 +43,7 @@ void QtChatView::addMessage(const ChatSnippet& snippet) { //bool wasScrolledToBottom = isScrolledToBottom(); QString content = snippet.getContent(); + content.replace("\\", "\\\\"); content.replace("\"", "\\\""); content.replace("\n", "\\n"); if (previousContinuationElementID_.isEmpty() || !snippet.getAppendToPrevious()) { |