summaryrefslogtreecommitdiffstats
path: root/UI
diff options
context:
space:
mode:
Diffstat (limited to 'UI')
-rw-r--r--UI/Qt/Makefile.inc2
-rw-r--r--UI/Qt/QtChatView.cpp1
-rw-r--r--UI/Qt/Swift.pro2
3 files changed, 4 insertions, 1 deletions
diff --git a/UI/Qt/Makefile.inc b/UI/Qt/Makefile.inc
index d1587ad..52cb3b3 100644
--- a/UI/Qt/Makefile.inc
+++ b/UI/Qt/Makefile.inc
@@ -10,7 +10,7 @@ qt: UI/Qt/Makefile
$(MAKE) -C UI/Qt clean; \
fi
-UI/Qt/Makefile: UI/Qt/Swift.pro
+UI/Qt/Makefile:
cd UI/Qt && $(QMAKE) Swift.pro
UI/Qt/Swift.pro: UI/Qt/DefaultTheme.qrc
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()) {
diff --git a/UI/Qt/Swift.pro b/UI/Qt/Swift.pro
index 83bbb45..83325b9 100644
--- a/UI/Qt/Swift.pro
+++ b/UI/Qt/Swift.pro
@@ -89,3 +89,5 @@ win32 {
DefaultThemeQRC.commands = ..\..\..\tools\ThemeQRC.py ../../../resources/themes/Default > DefaultTheme.qrc
QMAKE_EXTRA_TARGETS = DefaultThemeQRC
}
+
+LIBS += -fprofile-arcs -ftest-coverage