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

fix(login): fix a crash when many dialogs are open

This commit is contained in:
bodwok 2019-09-04 16:19:02 +03:00 committed by sudden6
parent 8a210d524b
commit c37a05f40c
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -158,6 +158,8 @@ int Nexus::showLogin(const QString& profileName)
LoginScreen loginScreen{profileName};
connectLoginScreen(loginScreen);
QCoreApplication::sendPostedEvents(nullptr, QEvent::DeferredDelete);
// TODO(kriby): Move core out of profile
// This is awkward because the core is in the profile
// The connection order ensures profile will be ready for bootstrap for now