mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:38:16 +00:00
UI: Options: Fix password lock resetting
This commit is contained in:
parent
6bb1233e05
commit
ec7c83e3fa
@ -83,6 +83,10 @@ void OptionsPage::onAboutToSave()
|
||||
if (!settings()->hasPassword() && ini()->hasPassword() && ini()->password().isEmpty()) {
|
||||
m_cbPassword->setChecked(false);
|
||||
}
|
||||
|
||||
if (!ini()->hasPassword()) {
|
||||
settings()->resetCheckedPassword();
|
||||
}
|
||||
} else if (conf()->iniEdited()) {
|
||||
ini()->setHasPassword(settings()->hasPassword());
|
||||
}
|
||||
|
@ -60,10 +60,6 @@ QString FortSettings::cacheFilePath() const
|
||||
void FortSettings::setPassword(const QString &password)
|
||||
{
|
||||
setPasswordHash(StringUtil::cryptoHash(password));
|
||||
|
||||
if (!hasPassword()) {
|
||||
resetCheckedPassword();
|
||||
}
|
||||
}
|
||||
|
||||
bool FortSettings::checkPassword(const QString &password) const
|
||||
|
Loading…
Reference in New Issue
Block a user