diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-03-30 02:29:48 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-14 18:47:40 +0300 |
commit | 79311750b58d650d49a3f0edd59d31dd132ab8c0 (patch) | |
tree | 57343f86003f2cdac2d812791ed8fa99fc291795 /src/qt/rpcconsole.cpp | |
parent | 963e12058f3ca3cdaeefd9aa5a8305fa41afd1a0 (diff) | |
download | bitcoin-79311750b58d650d49a3f0edd59d31dd132ab8c0.tar.xz |
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/rpcconsole.cpp')
-rw-r--r-- | src/qt/rpcconsole.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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); |