summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-09 20:25:31 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-09 20:25:31 (GMT)
commit5ddef4042f9049e3f436b21b7b1d6d50789c5a1e (patch)
treec48df3d48a38a1c40b1f90f80747b280bd21f25e /Swift
parenta7eacf1c5c425f45746c1d9bd2c9f9a3f696584a (diff)
downloadswift-5ddef4042f9049e3f436b21b7b1d6d50789c5a1e.zip
swift-5ddef4042f9049e3f436b21b7b1d6d50789c5a1e.tar.bz2
Spin the event loop when messages are added to the ChatView.
This gives the GUI a chance to catch up during login, where many messages are being processed by webkit.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtChatView.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatView.cpp b/Swift/QtUI/QtChatView.cpp
index 02c54a7..3f7617a 100644
--- a/Swift/QtUI/QtChatView.cpp
+++ b/Swift/QtUI/QtChatView.cpp
@@ -16,6 +16,7 @@
#include <QStackedWidget>
#include <QTimer>
#include <QMessageBox>
+#include <QApplication>
#include "QtWebView.h"
#include "QtChatTheme.h"
@@ -102,6 +103,7 @@ void QtChatView::addToDOM(boost::shared_ptr<ChatSnippet> snippet) {
newInsertPoint_.prependOutside(newElement);
}
lastElement_ = newElement;
+ qApp->processEvents();
}
void QtChatView::replaceLastMessage(const QString& newMessage) {