Commit a51dcaf7 authored by Marco Martin's avatar Marco Martin

delay quit after successful password

Make quit a queued connection to give the QML part time to eventually execute code connected to Authenticator::succeeded if any. All such connections would need to be immediate
parent 1da23c52
......@@ -120,7 +120,8 @@ UnlockApp::UnlockApp(int &argc, char **argv)
, m_lnfIntegration(new LnFIntegration(this))
{
m_authenticator = createAuthenticator();
connect(m_authenticator, &Authenticator::succeeded, this, &QCoreApplication::quit);
// It's a queued connection to give the QML part time to eventually execute code connected to Authenticator::succeeded if any
connect(m_authenticator, &Authenticator::succeeded, this, &QCoreApplication::quit, Qt::QueuedConnection);
initialize();
connect(this, &UnlockApp::screenAdded, this, &UnlockApp::desktopResized);
connect(this, &UnlockApp::screenRemoved, this, &UnlockApp::desktopResized);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment