summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtChatView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatView.cpp b/Swift/QtUI/QtChatView.cpp
index d7077a5..eea18f7 100644
--- a/Swift/QtUI/QtChatView.cpp
+++ b/Swift/QtUI/QtChatView.cpp
@@ -93,6 +93,7 @@ void QtChatView::addToDOM(boost::shared_ptr<ChatSnippet> snippet) {
}
void QtChatView::replaceLastMessage(const QString& newMessage) {
+ assert(viewReady_);
/* FIXME: must be queued? */
bool bottom = isScrolledToBottom();
assert(!lastElement_.isNull());