diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-03 13:30:07 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-03 13:30:07 (GMT) |
commit | 0260c57027540bfed82670dba059088d45dcb38f (patch) | |
tree | 956e4508f7d28b5233c31301a65a66526b5b74cc /Swift | |
parent | ca8c09b19480e6b743ef94f88ee1e7c4b1b21578 (diff) | |
download | swift-0260c57027540bfed82670dba059088d45dcb38f.zip swift-0260c57027540bfed82670dba059088d45dcb38f.tar.bz2 |
Add an extra assert for replacing messages in ChatView.
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/QtChatView.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatView.cpp b/Swift/QtUI/QtChatView.cpp index 0f7e87b..d7077a5 100644 --- a/Swift/QtUI/QtChatView.cpp +++ b/Swift/QtUI/QtChatView.cpp @@ -95,6 +95,7 @@ void QtChatView::addToDOM(boost::shared_ptr<ChatSnippet> snippet) { void QtChatView::replaceLastMessage(const QString& newMessage) { /* FIXME: must be queued? */ bool bottom = isScrolledToBottom(); + assert(!lastElement_.isNull()); QWebElement replace = lastElement_.findFirst("span.swift_message"); assert(!replace.isNull()); QString old = lastElement_.toOuterXml(); |