aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoingui.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-05-15 22:58:08 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-05-29 15:49:30 +0300
commitf73e5c972ab096e0f80cb9e753fa221d17313358 (patch)
tree603d0246540f0fea8b369da95894d7b4a1b7e072 /src/qt/bitcoingui.cpp
parent20e2e24e90d782219e853ef0676ac66dc6a9de6a (diff)
downloadbitcoin-f73e5c972ab096e0f80cb9e753fa221d17313358.tar.xz
qt: Move CreateWalletActivity connection from WalletFrame to BitcoinGUI
This changes remove some pointers to the BitcoinGUI instance that is required for the next commits. This commit does not change behavior.
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r--src/qt/bitcoingui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index 4fb693cc6e..eaacacb053 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -104,6 +104,11 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
{
/** Create wallet frame and make it the central widget */
walletFrame = new WalletFrame(_platformStyle, this);
+ connect(walletFrame, &WalletFrame::createWalletButtonClicked, [this] {
+ auto activity = new CreateWalletActivity(getWalletController(), this);
+ connect(activity, &CreateWalletActivity::finished, activity, &QObject::deleteLater);
+ activity->create();
+ });
setCentralWidget(walletFrame);
} else
#endif // ENABLE_WALLET