Skip to content

Commit

Permalink
gui: create wallet: allow nameless
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Nov 13, 2020
1 parent d393708 commit 03ebe1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions src/qt/createwalletdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ CreateWalletDialog::CreateWalletDialog(QWidget* parent) :
{
ui->setupUi(this);
ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Create"));
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(true);
ui->wallet_name_line_edit->setFocus(Qt::ActiveWindowFocusReason);

connect(ui->wallet_name_line_edit, &QLineEdit::textEdited, [this](const QString& text) {
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(!text.isEmpty());
});

connect(ui->encrypt_wallet_checkbox, &QCheckBox::toggled, [this](bool checked) {
// Disable the disable_privkeys_checkbox when isEncryptWalletChecked is
// set to true, enable it when isEncryptWalletChecked is false.
Expand Down
3 changes: 0 additions & 3 deletions src/qt/forms/createwalletdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
<height>24</height>
</rect>
</property>
<property name="placeholderText">
<string>MyWallet</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
Expand Down

0 comments on commit 03ebe1b

Please sign in to comment.