@@ -392,7 +392,7 @@ void BitcoinGUI::createActions()
392
392
connect (usedSendingAddressesAction, &QAction::triggered, walletFrame, &WalletFrame::usedSendingAddresses);
393
393
connect (usedReceivingAddressesAction, &QAction::triggered, walletFrame, &WalletFrame::usedReceivingAddresses);
394
394
connect (openAction, &QAction::triggered, this , &BitcoinGUI::openClicked);
395
- connect (m_open_wallet_menu, &QMenu::aboutToShow, [this ] {
395
+ connect (m_open_wallet_menu, &QMenu::aboutToShow, m_wallet_controller, [this ] {
396
396
m_open_wallet_menu->clear ();
397
397
for (const std::pair<const std::string, bool >& i : m_wallet_controller->listWalletDir ()) {
398
398
const std::string& path = i.first ;
@@ -409,7 +409,7 @@ void BitcoinGUI::createActions()
409
409
continue ;
410
410
}
411
411
412
- connect (action, &QAction::triggered, [this , path] {
412
+ connect (action, &QAction::triggered, m_wallet_controller, [this , path] {
413
413
auto activity = new OpenWalletActivity (m_wallet_controller, this );
414
414
connect (activity, &OpenWalletActivity::opened, this , &BitcoinGUI::setCurrentWallet, Qt::QueuedConnection);
415
415
connect (activity, &OpenWalletActivity::opened, rpcConsole, &RPCConsole::setCurrentWallet, Qt::QueuedConnection);
@@ -421,7 +421,7 @@ void BitcoinGUI::createActions()
421
421
action->setEnabled (false );
422
422
}
423
423
});
424
- connect (m_restore_wallet_action, &QAction::triggered, [this ] {
424
+ connect (m_restore_wallet_action, &QAction::triggered, m_wallet_controller, [this ] {
425
425
// : Name of the wallet data file format.
426
426
QString name_data_file = tr (" Wallet Data" );
427
427
@@ -447,14 +447,14 @@ void BitcoinGUI::createActions()
447
447
auto backup_file_path = fs::PathFromString (backup_file.toStdString ());
448
448
activity->restore (backup_file_path, wallet_name.toStdString ());
449
449
});
450
- connect (m_close_wallet_action, &QAction::triggered, [this ] {
450
+ connect (m_close_wallet_action, &QAction::triggered, m_wallet_controller, [this ] {
451
451
m_wallet_controller->closeWallet (walletFrame->currentWalletModel (), this );
452
452
});
453
453
connect (m_create_wallet_action, &QAction::triggered, this , &BitcoinGUI::createWallet);
454
- connect (m_close_all_wallets_action, &QAction::triggered, [this ] {
454
+ connect (m_close_all_wallets_action, &QAction::triggered, m_wallet_controller, [this ] {
455
455
m_wallet_controller->closeAllWallets (this );
456
456
});
457
- connect (m_migrate_wallet_action, &QAction::triggered, [this ] {
457
+ connect (m_migrate_wallet_action, &QAction::triggered, m_wallet_controller, [this ] {
458
458
auto activity = new MigrateWalletActivity (m_wallet_controller, this );
459
459
connect (activity, &MigrateWalletActivity::migrated, this , &BitcoinGUI::setCurrentWallet);
460
460
activity->migrate (walletFrame->currentWalletModel ());
0 commit comments