From 79311750b58d650d49a3f0edd59d31dd132ab8c0 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 30 Mar 2021 02:29:48 +0300 Subject: qt: Do not assign Alt+ shortcuts to context menu actions Such shortcuts are useless as pressing the Alt key closes a context menu widget immediately. --- src/qt/rpcconsole.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/qt/rpcconsole.cpp') diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 34d055e5a5..87bac6f21b 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -617,11 +617,11 @@ void RPCConsole::setClientModel(ClientModel *model, int bestblock_height, int64_ ui->peerWidget->horizontalHeader()->setStretchLastSection(true); // create peer table context menu actions - QAction* disconnectAction = new QAction(tr("&Disconnect"), this); - QAction* banAction1h = new QAction(ts.ban_for + " " + tr("1 &hour"), this); - QAction* banAction24h = new QAction(ts.ban_for + " " + tr("1 &day"), this); - QAction* banAction7d = new QAction(ts.ban_for + " " + tr("1 &week"), this); - QAction* banAction365d = new QAction(ts.ban_for + " " + tr("1 &year"), this); + QAction* disconnectAction = new QAction(tr("Disconnect"), this); + QAction* banAction1h = new QAction(ts.ban_for + " " + tr("1 hour"), this); + QAction* banAction24h = new QAction(ts.ban_for + " " + tr("1 day"), this); + QAction* banAction7d = new QAction(ts.ban_for + " " + tr("1 week"), this); + QAction* banAction365d = new QAction(ts.ban_for + " " + tr("1 year"), this); // create peer table context menu peersTableContextMenu = new QMenu(this); @@ -658,7 +658,7 @@ void RPCConsole::setClientModel(ClientModel *model, int bestblock_height, int64_ ui->banlistWidget->horizontalHeader()->setStretchLastSection(true); // create ban table context menu action - QAction* unbanAction = new QAction(tr("&Unban"), this); + QAction* unbanAction = new QAction(tr("Unban"), this); // create ban table context menu banTableContextMenu = new QMenu(this); -- cgit v1.2.3