Skip to content

Commit 03ebe1b

Browse files
committed
gui: create wallet: allow nameless
1 parent d393708 commit 03ebe1b

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/qt/createwalletdialog.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@ CreateWalletDialog::CreateWalletDialog(QWidget* parent) :
1717
{
1818
ui->setupUi(this);
1919
ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Create"));
20-
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
20+
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(true);
2121
ui->wallet_name_line_edit->setFocus(Qt::ActiveWindowFocusReason);
2222

23-
connect(ui->wallet_name_line_edit, &QLineEdit::textEdited, [this](const QString& text) {
24-
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(!text.isEmpty());
25-
});
26-
2723
connect(ui->encrypt_wallet_checkbox, &QCheckBox::toggled, [this](bool checked) {
2824
// Disable the disable_privkeys_checkbox when isEncryptWalletChecked is
2925
// set to true, enable it when isEncryptWalletChecked is false.

src/qt/forms/createwalletdialog.ui

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@
3838
<height>24</height>
3939
</rect>
4040
</property>
41-
<property name="placeholderText">
42-
<string>MyWallet</string>
43-
</property>
4441
</widget>
4542
<widget class="QLabel" name="label">
4643
<property name="geometry">

0 commit comments

Comments
 (0)