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/MessageSnippet.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/MessageSnippet.cpp')
-rw-r--r--Swift/QtUI/MessageSnippet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/MessageSnippet.cpp b/Swift/QtUI/MessageSnippet.cpp
index 995a0db..47cb1a0 100644
--- a/Swift/QtUI/MessageSnippet.cpp
+++ b/Swift/QtUI/MessageSnippet.cpp
@@ -12,6 +12,9 @@
namespace Swift {
MessageSnippet::MessageSnippet(const QString& message, const QString& sender, const QDateTime& time, const QString& iconURI, bool isIncoming, bool appendToPrevious, QtChatTheme* theme, const QString& id) : ChatSnippet(appendToPrevious) {
+ if (appendToPrevious) {
+ setContinuationFallbackSnippet(boost::shared_ptr<ChatSnippet>(new MessageSnippet(message, sender, time, iconURI, isIncoming, false, theme, id)));
+ }
if (isIncoming) {
if (appendToPrevious) {
content_ = theme->getIncomingNextContent();