From 56d997607c21d52d0ce75067601814e5106a8ef0 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 30 Jan 2018 15:04:02 +0900 Subject: 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. --- connection.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'connection.cpp') diff --git a/connection.cpp b/connection.cpp index 4ed7384f..c515e5a4 100644 --- a/connection.cpp +++ b/connection.cpp @@ -39,6 +39,7 @@ #include #include #include +#include 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(); } } -- cgit v1.2.3