Browse Source

make hint text field enabled only when entering password is enabled

cl-refactor
debris 10 years ago
parent
commit
f30991f6cb
  1. 2
      alethzero/plugins/namers/NewAccount.cpp

2
alethzero/plugins/namers/NewAccount.cpp

@ -60,6 +60,7 @@ void NewAccount::create()
u.hexText->setEnabled(false); u.hexText->setEnabled(false);
u.passwordText->setEnabled(false); u.passwordText->setEnabled(false);
u.passwordAgainText->setEnabled(false); u.passwordAgainText->setEnabled(false);
u.hintText->setEnabled(false);
QStringList items = QStringList items =
{ {
@ -84,6 +85,7 @@ void NewAccount::create()
bool checked = u.additionalCheckBox->checkState() == Qt::CheckState::Checked; bool checked = u.additionalCheckBox->checkState() == Qt::CheckState::Checked;
u.passwordText->setEnabled(checked); u.passwordText->setEnabled(checked);
u.passwordAgainText->setEnabled(checked); u.passwordAgainText->setEnabled(checked);
u.hintText->setEnabled(checked);
}); });
connect(u.create, &QPushButton::clicked, [&]() connect(u.create, &QPushButton::clicked, [&]()

Loading…
Cancel
Save