Skip to content

Commit

Permalink
Passkeys: Position the confirm dialog with the parent window
Browse files Browse the repository at this point in the history
  • Loading branch information
varjolintu authored and droidmonkey committed Apr 21, 2024
1 parent 41d0013 commit cb1ae44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/BrowserService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ QJsonObject BrowserService::showPasskeysRegisterPrompt(const QJsonObject& public
const auto existingEntries = getPasskeyEntriesWithUserHandle(rpId, userId, keyList);

raiseWindow();
BrowserPasskeysConfirmationDialog confirmDialog;
BrowserPasskeysConfirmationDialog confirmDialog(m_currentDatabaseWidget);
confirmDialog.registerCredential(username, rpId, existingEntries, timeout);

auto dialogResult = confirmDialog.exec();
Expand Down Expand Up @@ -712,7 +712,7 @@ QJsonObject BrowserService::showPasskeysAuthenticationPrompt(const QJsonObject&
const auto timeout = publicKeyOptions["timeout"].toInt();

raiseWindow();
BrowserPasskeysConfirmationDialog confirmDialog;
BrowserPasskeysConfirmationDialog confirmDialog(m_currentDatabaseWidget);
confirmDialog.authenticateCredential(entries, rpId, timeout);
auto dialogResult = confirmDialog.exec();
if (dialogResult == QDialog::Accepted) {
Expand Down

0 comments on commit cb1ae44

Please sign in to comment.