aboutsummaryrefslogtreecommitdiff
path: root/src/qt/createwalletdialog.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-08-05 23:27:53 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-08-05 23:27:53 -0400
commita9b9ca82daefc77ee3c884d3f250460d7cf734a5 (patch)
treed5980605959936924ecf59a06ab2a9541c5df6be /src/qt/createwalletdialog.h
parentd67330d11245b11fbdd5e2dd5343ee451186931e (diff)
downloadbitcoin-a9b9ca82daefc77ee3c884d3f250460d7cf734a5.tar.xz
gui: ensure external signer option remains disabled without signers
When no external signers are available, the option to enable external signers should always be disabled. However the encrypt wallet checkbox can erroneously re-enable the external signer checkbox. To avoid this, CreateWalletDialog now stores whether signers were available during setSigners so that future calls to external_signer_checkbox->setEnabled can account for whether signers are available.
Diffstat (limited to 'src/qt/createwalletdialog.h')
-rw-r--r--src/qt/createwalletdialog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/createwalletdialog.h b/src/qt/createwalletdialog.h
index 25ddf97585..fc13cc44eb 100644
--- a/src/qt/createwalletdialog.h
+++ b/src/qt/createwalletdialog.h
@@ -35,6 +35,7 @@ public:
private:
Ui::CreateWalletDialog *ui;
+ bool m_has_signers = false;
};
#endif // BITCOIN_QT_CREATEWALLETDIALOG_H