Skip to content

Commit 283bd63

Browse files
committed
[Qt] Fix UI tab order and shortcuts
The Privacy tab and the Transactions tab had swapped shortcuts and were being created in reverse order to how they were being added to the UI's menubar.
1 parent 5b17d6e commit 283bd63

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/qt/bitcoingui.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -317,28 +317,28 @@ void BitcoinGUI::createActions(const NetworkStyle* networkStyle)
317317
#endif
318318
tabGroup->addAction(receiveCoinsAction);
319319

320-
privacyAction = new QAction(QIcon(":/icons/privacy"), tr("&Privacy"), this);
321-
privacyAction->setStatusTip(tr("Privacy Actions for zPIV"));
322-
privacyAction->setToolTip(privacyAction->statusTip());
323-
privacyAction->setCheckable(true);
324-
#ifdef Q_OS_MAC
325-
privacyAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_4));
326-
#else
327-
privacyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));
328-
#endif
329-
tabGroup->addAction(privacyAction);
330-
331320
historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);
332321
historyAction->setStatusTip(tr("Browse transaction history"));
333322
historyAction->setToolTip(historyAction->statusTip());
334323
historyAction->setCheckable(true);
335324
#ifdef Q_OS_MAC
336-
historyAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_5));
325+
historyAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_4));
337326
#else
338-
historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));
327+
historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));
339328
#endif
340329
tabGroup->addAction(historyAction);
341330

331+
privacyAction = new QAction(QIcon(":/icons/privacy"), tr("&Privacy"), this);
332+
privacyAction->setStatusTip(tr("Privacy Actions for zPIV"));
333+
privacyAction->setToolTip(privacyAction->statusTip());
334+
privacyAction->setCheckable(true);
335+
#ifdef Q_OS_MAC
336+
privacyAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_5));
337+
#else
338+
privacyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));
339+
#endif
340+
tabGroup->addAction(privacyAction);
341+
342342
#ifdef ENABLE_WALLET
343343

344344
QSettings settings;

0 commit comments

Comments
 (0)