From acebcadf74116468f018e2d040f817ac421ee14d Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sun, 3 Oct 2010 15:17:42 +0100
Subject: Asserts trying to find problem with crashing message replacement


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());
-- 
cgit v0.10.2-6-g49f6