From a49e34589f40edfb3fc46d5700573f87d5dfe3d0 Mon Sep 17 00:00:00 2001 From: sudden6 Date: Sun, 7 Jan 2018 16:04:27 +0100 Subject: [PATCH] fix(UI): prevent deadlocks on logout and profile delete fixes #4896 --- src/model/profile/profileinfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/profile/profileinfo.cpp b/src/model/profile/profileinfo.cpp index fbf294c28..3ffc2684d 100644 --- a/src/model/profile/profileinfo.cpp +++ b/src/model/profile/profileinfo.cpp @@ -217,7 +217,7 @@ IProfileInfo::SaveResult ProfileInfo::exportProfile(const QString &path) const QVector ProfileInfo::removeProfile() { QVector manualDeleteFiles = profile->remove(); - QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin", Qt::BlockingQueuedConnection); + QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin"); return manualDeleteFiles; } @@ -227,7 +227,7 @@ QVector ProfileInfo::removeProfile() void ProfileInfo::logout() { Settings::getInstance().saveGlobal(); - QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin", Qt::BlockingQueuedConnection); + QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin"); } /**