aboutsummaryrefslogtreecommitdiff
path: root/src/qt/addressbookpage.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-03-30 02:29:48 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-04-14 18:47:40 +0300
commit79311750b58d650d49a3f0edd59d31dd132ab8c0 (patch)
tree57343f86003f2cdac2d812791ed8fa99fc291795 /src/qt/addressbookpage.cpp
parent963e12058f3ca3cdaeefd9aa5a8305fa41afd1a0 (diff)
qt: Do not assign Alt+<KEY> shortcuts to context menu actions
Such shortcuts are useless as pressing the Alt key closes a context menu widget immediately.
Diffstat (limited to 'src/qt/addressbookpage.cpp')
-rw-r--r--src/qt/addressbookpage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp
index b4067deb35..858350c287 100644
--- a/src/qt/addressbookpage.cpp
+++ b/src/qt/addressbookpage.cpp
@@ -113,9 +113,9 @@ AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode _mode,
}
// Context menu actions
- QAction *copyAddressAction = new QAction(tr("&Copy Address"), this);
- QAction *copyLabelAction = new QAction(tr("Copy &Label"), this);
- QAction *editAction = new QAction(tr("&Edit"), this);
+ QAction* copyAddressAction = new QAction(tr("Copy Address"), this);
+ QAction* copyLabelAction = new QAction(tr("Copy Label"), this);
+ QAction* editAction = new QAction(tr("Edit"), this);
// Build context menu
contextMenu = new QMenu(this);
@@ -123,7 +123,7 @@ AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode _mode,
contextMenu->addAction(copyLabelAction);
contextMenu->addAction(editAction);
if (tab == SendingTab) {
- QAction* deleteAction = new QAction(ui->deleteAddress->text(), this);
+ QAction* deleteAction = new QAction(tr("Delete"), this);
contextMenu->addAction(deleteAction);
connect(deleteAction, &QAction::triggered, this, &AddressBookPage::on_deleteAddress_clicked);
}