From ea183a6889ac6527f39166bcbeaf778f39e701b2 Mon Sep 17 00:00:00 2001 From: Dmytro Maslenko Date: Sun, 29 Jan 2023 14:40:09 -0500 Subject: [PATCH] Move 'Copy URL' into main entry context menu --- share/translations/keepassxc_en.ts | 8 ++++---- src/gui/MainWindow.cpp | 1 + src/gui/MainWindow.ui | 13 ++++--------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/share/translations/keepassxc_en.ts b/share/translations/keepassxc_en.ts index 590fec574..824846331 100644 --- a/share/translations/keepassxc_en.ts +++ b/share/translations/keepassxc_en.ts @@ -5137,10 +5137,6 @@ Are you sure you want to continue with this file? Copy title to clipboard - - &URL - - Copy URL to clipboard @@ -5395,6 +5391,10 @@ We recommend you use the AppImage available on our downloads page. XML Fileā€¦ + + Copy &URL + + ManageDatabase diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 036408224..92e894e0e 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -128,6 +128,7 @@ MainWindow::MainWindow() m_entryContextMenu->setSeparatorsCollapsible(true); m_entryContextMenu->addAction(m_ui->actionEntryCopyUsername); m_entryContextMenu->addAction(m_ui->actionEntryCopyPassword); + m_entryContextMenu->addAction(m_ui->actionEntryCopyURL); m_entryContextMenu->addAction(m_ui->menuEntryCopyAttribute->menuAction()); m_entryContextMenu->addAction(m_ui->menuEntryTotp->menuAction()); m_entryContextMenu->addAction(m_ui->menuTags->menuAction()); diff --git a/src/gui/MainWindow.ui b/src/gui/MainWindow.ui index 60b9d1b80..bbc06c180 100644 --- a/src/gui/MainWindow.ui +++ b/src/gui/MainWindow.ui @@ -216,7 +216,7 @@ 0 0 800 - 25 + 22 @@ -247,11 +247,6 @@ - - - &Quit - - @@ -306,7 +301,6 @@ Copy Att&ribute - @@ -338,6 +332,7 @@ + @@ -818,7 +813,7 @@ false - &URL + Copy &URL Copy URL to clipboard @@ -895,7 +890,7 @@ Copy &TOTP - + Copy Password and TOTP