From: Méven Car Date: Thu, 18 May 2023 08:07:50 +0000 (+0200) Subject: global.cpp: Ensure qApp does not emit signal because of local QEventLoop X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/dec80fb0f940ff4e71032c2d3544f0d60a05c4ce?ds=sidebyside global.cpp: Ensure qApp does not emit signal because of local QEventLoop BUG: 469656 --- diff --git a/src/global.cpp b/src/global.cpp index 9246eeb33..c68b2d2d0 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -148,6 +148,8 @@ QVector, QStringList>> Do static KActivities::Consumer *consumer; std::call_once(one_consumer, []() { consumer = new KActivities::Consumer(); + // to prevent QGuiApplication::saveStateRequest + const QSignalBlocker blocker(qApp); // ensures the consumer is ready for query QEventLoop loop; QObject::connect(consumer, &KActivities::Consumer::serviceStatusChanged, &loop, &QEventLoop::quit);