File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,21 @@ CreateWalletDialog::CreateWalletDialog(QWidget* parent) :
36
36
ui->disable_privkeys_checkbox ->setChecked (false );
37
37
}
38
38
});
39
+ connect (ui->disable_privkeys_checkbox , &QCheckBox::toggled, [this ](bool checked) {
40
+ // Disable the encrypt_wallet_checkbox when isDisablePrivateKeysChecked is
41
+ // set to true, enable it when isDisablePrivateKeysChecked is false.
42
+ ui->encrypt_wallet_checkbox ->setEnabled (!checked);
43
+
44
+ // Wallets without private keys start out blank
45
+ if (checked) {
46
+ ui->blank_wallet_checkbox ->setChecked (true );
47
+ }
48
+
49
+ // When the encrypt_wallet_checkbox is disabled, uncheck it.
50
+ if (!ui->encrypt_wallet_checkbox ->isEnabled ()) {
51
+ ui->encrypt_wallet_checkbox ->setChecked (false );
52
+ }
53
+ });
39
54
}
40
55
41
56
CreateWalletDialog::~CreateWalletDialog ()
You can’t perform that action at this time.
0 commit comments