Pharao Release
Version 4.0.0.4 - refactored code - migrated vom Qt4 to Qt5 - added secure messaging
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <QPushButton>
|
||||
#include <QKeyEvent>
|
||||
|
||||
extern bool fWalletUnlockMintOnly;
|
||||
extern bool fWalletUnlockStakingOnly;
|
||||
|
||||
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
@@ -35,9 +35,9 @@ AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
|
||||
ui->warningLabel->setText(tr("Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>."));
|
||||
setWindowTitle(tr("Encrypt wallet"));
|
||||
break;
|
||||
case UnlockMinting:
|
||||
ui->mintingCheckBox->setChecked(true);
|
||||
ui->mintingCheckBox->show();
|
||||
case UnlockStaking:
|
||||
ui->stakingCheckBox->setChecked(true);
|
||||
ui->stakingCheckBox->show();
|
||||
// fallthru
|
||||
case Unlock: // Ask passphrase
|
||||
ui->warningLabel->setText(tr("This operation needs your wallet passphrase to unlock the wallet."));
|
||||
@@ -115,7 +115,7 @@ void AskPassphraseDialog::accept()
|
||||
{
|
||||
QMessageBox::warning(this, tr("Wallet encrypted"),
|
||||
"<qt>" +
|
||||
tr("triangles will close now to finish the encryption process. "
|
||||
tr("Triangles will close now to finish the encryption process. "
|
||||
"Remember that encrypting your wallet cannot fully protect "
|
||||
"your coins from being stolen by malware infecting your computer.") +
|
||||
"<br><br><b>" +
|
||||
@@ -144,7 +144,7 @@ void AskPassphraseDialog::accept()
|
||||
QDialog::reject(); // Cancelled
|
||||
}
|
||||
} break;
|
||||
case UnlockMinting:
|
||||
case UnlockStaking:
|
||||
case Unlock:
|
||||
if(!model->setWalletLocked(false, oldpass))
|
||||
{
|
||||
@@ -153,7 +153,7 @@ void AskPassphraseDialog::accept()
|
||||
}
|
||||
else
|
||||
{
|
||||
fWalletUnlockMintOnly = ui->mintingCheckBox->isChecked();
|
||||
fWalletUnlockStakingOnly = ui->stakingCheckBox->isChecked();
|
||||
QDialog::accept(); // Success
|
||||
}
|
||||
break;
|
||||
@@ -201,7 +201,7 @@ void AskPassphraseDialog::textChanged()
|
||||
case Encrypt: // New passphrase x2
|
||||
acceptable = !ui->passEdit2->text().isEmpty() && !ui->passEdit3->text().isEmpty();
|
||||
break;
|
||||
case UnlockMinting:
|
||||
case UnlockStaking:
|
||||
case Unlock: // Old passphrase x1
|
||||
case Decrypt:
|
||||
acceptable = !ui->passEdit1->text().isEmpty();
|
||||
|
||||
Reference in New Issue
Block a user