From 5ddef4042f9049e3f436b21b7b1d6d50789c5a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Wed, 9 Feb 2011 21:25:31 +0100 Subject: 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. 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) { -- cgit v0.10.2-6-g49f6