@@ -269,17 +269,17 @@ void BitcoinGUI::createActions()
269269#ifdef ENABLE_WALLET
270270 // These showNormalIfMinimized are needed because Send Coins and Receive Coins
271271 // can be triggered from the tray menu, and need to show the GUI to be useful.
272- connect (overviewAction, &QAction::triggered, this , static_cast < void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized) );
272+ connect (overviewAction, &QAction::triggered, [ this ]{ showNormalIfMinimized (); } );
273273 connect (overviewAction, &QAction::triggered, this , &BitcoinGUI::gotoOverviewPage);
274- connect (sendCoinsAction, &QAction::triggered, this , static_cast < void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized) );
274+ connect (sendCoinsAction, &QAction::triggered, [ this ]{ showNormalIfMinimized (); } );
275275 connect (sendCoinsAction, &QAction::triggered, [this ]{ gotoSendCoinsPage (); });
276- connect (sendCoinsMenuAction, &QAction::triggered, this , static_cast < void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized) );
276+ connect (sendCoinsMenuAction, &QAction::triggered, [ this ]{ showNormalIfMinimized (); } );
277277 connect (sendCoinsMenuAction, &QAction::triggered, [this ]{ gotoSendCoinsPage (); });
278- connect (receiveCoinsAction, &QAction::triggered, this , static_cast < void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized) );
278+ connect (receiveCoinsAction, &QAction::triggered, [ this ]{ showNormalIfMinimized (); } );
279279 connect (receiveCoinsAction, &QAction::triggered, this , &BitcoinGUI::gotoReceiveCoinsPage);
280- connect (receiveCoinsMenuAction, &QAction::triggered, this , static_cast < void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized) );
280+ connect (receiveCoinsMenuAction, &QAction::triggered, [ this ]{ showNormalIfMinimized (); } );
281281 connect (receiveCoinsMenuAction, &QAction::triggered, this , &BitcoinGUI::gotoReceiveCoinsPage);
282- connect (historyAction, &QAction::triggered, this , static_cast < void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized) );
282+ connect (historyAction, &QAction::triggered, [ this ]{ showNormalIfMinimized (); } );
283283 connect (historyAction, &QAction::triggered, this , &BitcoinGUI::gotoHistoryPage);
284284#endif // ENABLE_WALLET
285285
@@ -346,7 +346,9 @@ void BitcoinGUI::createActions()
346346 connect (encryptWalletAction, &QAction::triggered, walletFrame, &WalletFrame::encryptWallet);
347347 connect (backupWalletAction, &QAction::triggered, walletFrame, &WalletFrame::backupWallet);
348348 connect (changePassphraseAction, &QAction::triggered, walletFrame, &WalletFrame::changePassphrase);
349+ connect (signMessageAction, &QAction::triggered, [this ]{ showNormalIfMinimized (); });
349350 connect (signMessageAction, &QAction::triggered, [this ]{ gotoSignMessageTab (); });
351+ connect (verifyMessageAction, &QAction::triggered, [this ]{ showNormalIfMinimized (); });
350352 connect (verifyMessageAction, &QAction::triggered, [this ]{ gotoVerifyMessageTab (); });
351353 connect (usedSendingAddressesAction, &QAction::triggered, walletFrame, &WalletFrame::usedSendingAddresses);
352354 connect (usedReceivingAddressesAction, &QAction::triggered, walletFrame, &WalletFrame::usedReceivingAddresses);
0 commit comments