aboutsummaryrefslogtreecommitdiff
path: root/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-30 15:04:02 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-30 15:18:37 +0900
commit56d997607c21d52d0ce75067601814e5106a8ef0 (patch)
treebe333d18df21c71085c04d61dc4274bd91b66dcb /connection.cpp
parent2f83e4be20a15013181c1ba6944e21f051ccac9d (diff)
downloadlibquotient-56d997607c21d52d0ce75067601814e5106a8ef0.tar.gz
libquotient-56d997607c21d52d0ce75067601814e5106a8ef0.zip
Connection::onSyncSuccess: call processEvents upon each room parsing
When there are too many rooms to process, this gives at least some bandwidth for the GUI in the meantime.
Diffstat (limited to 'connection.cpp')
-rw-r--r--connection.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/connection.cpp b/connection.cpp
index 4ed7384f..c515e5a4 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -39,6 +39,7 @@
#include <QtCore/QStringBuilder>
#include <QtCore/QElapsedTimer>
#include <QtCore/QRegularExpression>
+#include <QtCore/QCoreApplication>
using namespace QMatrixClient;
@@ -274,6 +275,7 @@ void Connection::onSyncSuccess(SyncData &&data) {
}
if ( auto* r = provideRoom(roomData.roomId, roomData.joinState) )
r->updateData(std::move(roomData));
+ QCoreApplication::instance()->processEvents();
}
}