mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-25 15:55:38 -04:00
forget keyfile path, fix #1151
This commit is contained in:
parent
b0e6bcfaa0
commit
cd1e0571a5
4 changed files with 19 additions and 5 deletions
|
@ -277,6 +277,9 @@ void DatabaseOpenWidget::activateChallengeResponse()
|
|||
void DatabaseOpenWidget::browseKeyFile()
|
||||
{
|
||||
QString filters = QString("%1 (*);;%2 (*.key)").arg(tr("All files"), tr("Key files"));
|
||||
if (!config()->get("RememberLastKeyFiles").toBool()) {
|
||||
fileDialog()->setNextForgetDialog();
|
||||
}
|
||||
QString filename = fileDialog()->getOpenFileName(this, tr("Select key file"), QString(), filters);
|
||||
|
||||
if (!filename.isEmpty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue