Changeset View
Changeset View
Standalone View
Standalone View
src/qt/askpassphrasedialog.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | switch (mode) { | ||||
tr("Are you sure you wish to encrypt your wallet?"), | tr("Are you sure you wish to encrypt your wallet?"), | ||||
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel); | QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel); | ||||
if (retval == QMessageBox::Yes) { | if (retval == QMessageBox::Yes) { | ||||
if (newpass1 == newpass2) { | if (newpass1 == newpass2) { | ||||
if (model->setWalletEncrypted(true, newpass1)) { | if (model->setWalletEncrypted(true, newpass1)) { | ||||
QMessageBox::warning( | QMessageBox::warning( | ||||
this, tr("Wallet encrypted"), | this, tr("Wallet encrypted"), | ||||
"<qt>" + | "<qt>" + | ||||
tr("%1 will close now to finish the encryption " | tr("Your wallet is now encrypted. " | ||||
"process. " | |||||
"Remember that encrypting your wallet " | "Remember that encrypting your wallet " | ||||
"cannot fully protect " | "cannot fully protect your bitcoins from " | ||||
"your bitcoins from being stolen by malware " | "being stolen by malware infecting your " | ||||
"infecting your computer.") | "computer.") + | ||||
.arg(tr(PACKAGE_NAME)) + | |||||
"<br><br><b>" + | "<br><br><b>" + | ||||
tr("IMPORTANT: Any previous backups you have " | tr("IMPORTANT: Any previous backups you have " | ||||
"made of your wallet file " | "made of your wallet file should be " | ||||
"should be replaced with the newly " | "replaced with the newly generated, " | ||||
"generated, encrypted wallet file. " | "encrypted wallet file. " | ||||
"For security reasons, previous backups of " | "For security reasons, previous backups of " | ||||
"the unencrypted wallet file " | "the unencrypted wallet file will become " | ||||
"will become useless as soon as you start " | "useless as soon as you start using the " | ||||
"using the new, encrypted wallet.") + | "new, encrypted wallet.") + | ||||
"</b></qt>"); | "</b></qt>"); | ||||
QApplication::quit(); | |||||
} else { | } else { | ||||
QMessageBox::critical( | QMessageBox::critical( | ||||
this, tr("Wallet encryption failed"), | this, tr("Wallet encryption failed"), | ||||
tr("Wallet encryption failed due to an internal " | tr("Wallet encryption failed due to an internal " | ||||
"error. Your wallet was not encrypted.")); | "error. Your wallet was not encrypted.")); | ||||
} | } | ||||
QDialog::accept(); // Success | QDialog::accept(); // Success | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |