1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(UI): prevent deadlocks on logout and profile delete

fixes #4896
This commit is contained in:
sudden6 2018-01-07 16:04:27 +01:00
parent c4fb495eb6
commit a49e34589f
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -217,7 +217,7 @@ IProfileInfo::SaveResult ProfileInfo::exportProfile(const QString &path) const
QVector<QString> ProfileInfo::removeProfile()
{
QVector<QString> manualDeleteFiles = profile->remove();
QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin", Qt::BlockingQueuedConnection);
QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin");
return manualDeleteFiles;
}
@ -227,7 +227,7 @@ QVector<QString> ProfileInfo::removeProfile()
void ProfileInfo::logout()
{
Settings::getInstance().saveGlobal();
QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin", Qt::BlockingQueuedConnection);
QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin");
}
/**