summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-11-21 19:43:42 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-11-21 19:51:36 (GMT)
commit90c44a10fec26d2a0935b2d62e82b6a5be028373 (patch)
tree43fec4088f5fe3a10320dc125206a3d48402b346 /Swift/QtUI/SystemMessageSnippet.cpp
parent4bda0cd18e86f037c3f494f1ea7ba5efedaf5042 (diff)
downloadswift-90c44a10fec26d2a0935b2d62e82b6a5be028373.zip
swift-90c44a10fec26d2a0935b2d62e82b6a5be028373.tar.bz2
Clearing the chat window won't break continuation elements.
Resolves: #642 Resolves: #643 Release-Notes: Clearing the chat windows should now work correctly.
Diffstat (limited to 'Swift/QtUI/SystemMessageSnippet.cpp')
-rw-r--r--Swift/QtUI/SystemMessageSnippet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/SystemMessageSnippet.cpp b/Swift/QtUI/SystemMessageSnippet.cpp
index 13919b2..2e0aec4 100644
--- a/Swift/QtUI/SystemMessageSnippet.cpp
+++ b/Swift/QtUI/SystemMessageSnippet.cpp
@@ -11,6 +11,9 @@
namespace Swift {
SystemMessageSnippet::SystemMessageSnippet(const QString& message, const QDateTime& time, bool appendToPrevious, QtChatTheme* theme) : ChatSnippet(appendToPrevious) {
+ if (appendToPrevious) {
+ setContinuationFallbackSnippet(boost::shared_ptr<ChatSnippet>(new SystemMessageSnippet(message, time, false, theme)));
+ }
content_ = theme->getStatus();
content_.replace("%message%", "<span class='swift_message'>" + escape(message) + "</span>");