diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-11-21 19:43:42 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-11-21 19:51:36 (GMT) |
commit | 90c44a10fec26d2a0935b2d62e82b6a5be028373 (patch) | |
tree | 43fec4088f5fe3a10320dc125206a3d48402b346 /Swift/QtUI/MessageSnippet.cpp | |
parent | 4bda0cd18e86f037c3f494f1ea7ba5efedaf5042 (diff) | |
download | swift-contrib-90c44a10fec26d2a0935b2d62e82b6a5be028373.zip swift-contrib-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.cpp | 3 |
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(); |