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

Small startup speed improvement

This commit is contained in:
tux3 2015-10-09 02:10:51 +02:00
parent e89b7e1c6d
commit 19a1851547
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,8 @@ Profile::Profile(QString name, QString password, bool isNewProfile)
: name{name}, password{password},
newProfile{isNewProfile}, isRemoved{false}
{
passkey = *core->createPasskey(password);
if (!password.isEmpty())
passkey = *core->createPasskey(password);
Settings& s = Settings::getInstance();
s.setCurrentProfile(name);

View File

@ -94,7 +94,9 @@ void LoginScreen::reset()
ui->loginPassword->setFocus();
}
ui->autoLoginCB->blockSignals(true);
ui->autoLoginCB->setChecked(Settings::getInstance().getAutoLogin());
ui->autoLoginCB->blockSignals(false);
}
#ifdef Q_OS_MAC