Don't remember key file folder if disabled

* Fixes #10557
This commit is contained in:
Jonathan White 2024-04-07 07:27:18 -04:00
parent 19d4f7334c
commit 9a65ffe972

View File

@ -470,7 +470,11 @@ bool DatabaseOpenWidget::browseKeyFile()
if (filename.isEmpty()) {
return false;
}
if (config()->get(Config::RememberLastKeyFiles).toBool()) {
FileDialog::saveLastDir("keyfile", filename, true);
} else {
FileDialog::saveLastDir("keyfile", {});
}
if (QFileInfo(filename).canonicalFilePath() == QFileInfo(m_filename).canonicalFilePath()) {
MessageBox::warning(this,