summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-10-03 14:17:42 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-10-03 14:17:42 (GMT)
commitacebcadf74116468f018e2d040f817ac421ee14d (patch)
tree0feb02a93bb7c426ce96ee38b3b600ae51fb8598 /Swift
parent0260c57027540bfed82670dba059088d45dcb38f (diff)
downloadswift-acebcadf74116468f018e2d040f817ac421ee14d.zip
swift-acebcadf74116468f018e2d040f817ac421ee14d.tar.bz2
Asserts trying to find problem with crashing message replacement
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());