Fix confirmation allowing access to all entries.

This commit is contained in:
Francois Ferrand 2013-04-17 00:11:05 +02:00
parent e2ba754f91
commit 47d7598e99

View File

@ -257,7 +257,7 @@ QList<KeepassHttpProtocol::Entry> Service::findMatchingEntries(const QString& /*
int res = dlg.exec(); int res = dlg.exec();
if (dlg.remember()) { if (dlg.remember()) {
Q_FOREACH (Entry * entry, pwEntries) { Q_FOREACH (Entry * entry, pwEntriesToConfirm) {
EntryConfig config; EntryConfig config;
config.load(entry); config.load(entry);
if (res == QDialog::Accepted) { if (res == QDialog::Accepted) {
@ -275,7 +275,7 @@ QList<KeepassHttpProtocol::Entry> Service::findMatchingEntries(const QString& /*
} }
} }
if (res == QDialog::Accepted) { if (res == QDialog::Accepted) {
Q_FOREACH (Entry * entry, pwEntries) Q_FOREACH (Entry * entry, pwEntriesToConfirm)
result << prepareEntry(entry); result << prepareEntry(entry);
} }
} }