From 9329df2b480ae031dd13bde70a0f890195717ff6 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Wed, 13 Mar 2024 22:55:41 +0200 Subject: [PATCH] Passkeys: Enable Import Passkey entry menu item only if a single entry is selected --- src/gui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index c97e049365..bf4c16ec54 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -957,7 +957,7 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode) #ifdef WITH_XC_BROWSER_PASSKEYS m_ui->actionPasskeys->setEnabled(true); m_ui->actionImportPasskey->setEnabled(true); - m_ui->actionEntryImportPasskey->setEnabled(true); + m_ui->actionEntryImportPasskey->setEnabled(singleEntrySelected); #endif #ifdef WITH_XC_SSHAGENT bool singleEntryHasSshKey =