diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-24 13:26:05 (GMT) |
---|---|---|
committer | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-24 13:26:05 (GMT) |
commit | 0cb7b193cd197efb28ddd14f1df2ab5e01a37609 (patch) | |
tree | 4c87ad6180d5e260872b06c553f5c8eec3a269cc /Swift/QtUI/QtChatView.cpp | |
parent | af56b6e929a713ecbfd573ecaa5cd5d254d8ff1a (diff) | |
download | swift-contrib-0cb7b193cd197efb28ddd14f1df2ab5e01a37609.zip swift-contrib-0cb7b193cd197efb28ddd14f1df2ab5e01a37609.tar.bz2 |
Append messages to bottom.
Diffstat (limited to 'Swift/QtUI/QtChatView.cpp')
-rw-r--r-- | Swift/QtUI/QtChatView.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatView.cpp b/Swift/QtUI/QtChatView.cpp index 56823bf..ef39b23 100644 --- a/Swift/QtUI/QtChatView.cpp +++ b/Swift/QtUI/QtChatView.cpp @@ -106,8 +106,10 @@ void QtChatView::addMessageTop(boost::shared_ptr<ChatSnippet> snippet) { topMessageAdded_ = true; QWebElement newElement = snippetToDOM(snippet); + firstElement_.prependOutside(newElement); firstElement_ = newElement; + if (lastElement_.isNull()) { lastElement_ = firstElement_; } |