Skip to content

Commit d2b6de0

Browse files
committed
qt: Make sure overviewpage button is pressed at startup
Due to walletframe changes, the overview page button is no longer automatically selected at startup even though the overview page is shown.
1 parent df840de commit d2b6de0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qt/bitcoingui.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ void BitcoinGUI::createActions(bool fIsTestnet)
215215
historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));
216216
tabGroup->addAction(historyAction);
217217

218+
// These showNormalIfMinimized are needed because Send Coins and Receive Coins
219+
// can be triggered from the tray menu, and need to show the GUI to be useful.
218220
connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
219221
connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));
220222
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
@@ -331,6 +333,7 @@ void BitcoinGUI::createToolBars()
331333
toolbar->addAction(sendCoinsAction);
332334
toolbar->addAction(receiveCoinsAction);
333335
toolbar->addAction(historyAction);
336+
overviewAction->setChecked(true);
334337
}
335338

336339
void BitcoinGUI::setClientModel(ClientModel *clientModel)

0 commit comments

Comments
 (0)