diff options
-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(); |