mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 21:47:38 +03:00
Fixes #9255 Access Confirmation dialog should not be shown with option ConfirmAccessItem=true
This commit is contained in:
parent
55ca5ca34c
commit
4ea0a1058c
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
||||||
#include "fdosecrets/objects/Session.h"
|
#include "fdosecrets/objects/Session.h"
|
||||||
#include "fdosecrets/widgets/AccessControlDialog.h"
|
#include "fdosecrets/widgets/AccessControlDialog.h"
|
||||||
|
|
||||||
|
#include "FdoSecretsSettings.h"
|
||||||
#include "core/Entry.h"
|
#include "core/Entry.h"
|
||||||
#include "gui/MessageBox.h"
|
#include "gui/MessageBox.h"
|
||||||
|
|
||||||
|
@ -298,7 +299,7 @@ namespace FdoSecrets
|
||||||
}
|
}
|
||||||
auto entry = item->backend();
|
auto entry = item->backend();
|
||||||
auto uuid = entry->uuid();
|
auto uuid = entry->uuid();
|
||||||
if (client->itemKnown(uuid)) {
|
if (client->itemKnown(uuid) || !FdoSecrets::settings()->confirmAccessItem()) {
|
||||||
if (!client->itemAuthorized(uuid)) {
|
if (!client->itemAuthorized(uuid)) {
|
||||||
m_numRejected += 1;
|
m_numRejected += 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue