Changeset View
Changeset View
Standalone View
Standalone View
src/qt/askpassphrasedialog.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | switch (mode) { | ||||
break; | break; | ||||
case ChangePass: // Ask old passphrase + new passphrase x2 | case ChangePass: // Ask old passphrase + new passphrase x2 | ||||
setWindowTitle(tr("Change passphrase")); | setWindowTitle(tr("Change passphrase")); | ||||
ui->warningLabel->setText(tr( | ui->warningLabel->setText(tr( | ||||
"Enter the old passphrase and new passphrase to the wallet.")); | "Enter the old passphrase and new passphrase to the wallet.")); | ||||
break; | break; | ||||
} | } | ||||
textChanged(); | textChanged(); | ||||
connect(ui->toggleShowPasswordButton, SIGNAL(toggled(bool)), this, | connect(ui->toggleShowPasswordButton, &QPushButton::toggled, this, | ||||
SLOT(toggleShowPassword(bool))); | &AskPassphraseDialog::toggleShowPassword); | ||||
connect(ui->passEdit1, SIGNAL(textChanged(QString)), this, | connect(ui->passEdit1, &QLineEdit::textChanged, this, | ||||
SLOT(textChanged())); | &AskPassphraseDialog::textChanged); | ||||
connect(ui->passEdit2, SIGNAL(textChanged(QString)), this, | connect(ui->passEdit2, &QLineEdit::textChanged, this, | ||||
SLOT(textChanged())); | &AskPassphraseDialog::textChanged); | ||||
connect(ui->passEdit3, SIGNAL(textChanged(QString)), this, | connect(ui->passEdit3, &QLineEdit::textChanged, this, | ||||
SLOT(textChanged())); | &AskPassphraseDialog::textChanged); | ||||
} | } | ||||
AskPassphraseDialog::~AskPassphraseDialog() { | AskPassphraseDialog::~AskPassphraseDialog() { | ||||
secureClearPassFields(); | secureClearPassFields(); | ||||
delete ui; | delete ui; | ||||
} | } | ||||
void AskPassphraseDialog::setModel(WalletModel *_model) { | void AskPassphraseDialog::setModel(WalletModel *_model) { | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |