@@ -269,17 +269,17 @@ void BitcoinGUI::createActions()
269
269
#ifdef ENABLE_WALLET
270
270
// These showNormalIfMinimized are needed because Send Coins and Receive Coins
271
271
// 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 (); } );
273
273
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 (); } );
275
275
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 (); } );
277
277
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 (); } );
279
279
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 (); } );
281
281
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 (); } );
283
283
connect (historyAction, &QAction::triggered, this , &BitcoinGUI::gotoHistoryPage);
284
284
#endif // ENABLE_WALLET
285
285
@@ -346,7 +346,9 @@ void BitcoinGUI::createActions()
346
346
connect (encryptWalletAction, &QAction::triggered, walletFrame, &WalletFrame::encryptWallet);
347
347
connect (backupWalletAction, &QAction::triggered, walletFrame, &WalletFrame::backupWallet);
348
348
connect (changePassphraseAction, &QAction::triggered, walletFrame, &WalletFrame::changePassphrase);
349
+ connect (signMessageAction, &QAction::triggered, [this ]{ showNormalIfMinimized (); });
349
350
connect (signMessageAction, &QAction::triggered, [this ]{ gotoSignMessageTab (); });
351
+ connect (verifyMessageAction, &QAction::triggered, [this ]{ showNormalIfMinimized (); });
350
352
connect (verifyMessageAction, &QAction::triggered, [this ]{ gotoVerifyMessageTab (); });
351
353
connect (usedSendingAddressesAction, &QAction::triggered, walletFrame, &WalletFrame::usedSendingAddresses);
352
354
connect (usedReceivingAddressesAction, &QAction::triggered, walletFrame, &WalletFrame::usedReceivingAddresses);
0 commit comments