mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Fix unlocking error on "Start Mixing" (#1941)
* Fix unlocking error on "Start Mixing"
Instead warn that wallet is fully unlocked etc.
* Revert "Fix unlocking error on "Start Mixing""
This reverts commit 4951e58f66
.
* Drop mixingOnlyCheckBox and determine the correct unlock path automatically via provided mode
This commit is contained in:
parent
0153c4c5e8
commit
ef9a9f2d67
@ -50,8 +50,13 @@ AskPassphraseDialog::AskPassphraseDialog(Mode _mode, QWidget *parent) :
|
||||
setWindowTitle(tr("Encrypt wallet"));
|
||||
break;
|
||||
case UnlockMixing:
|
||||
ui->mixingOnlyCheckBox->show();
|
||||
ui->mixingOnlyCheckBox->setChecked(true);
|
||||
ui->warningLabel->setText(tr("This operation needs your wallet passphrase to unlock the wallet."));
|
||||
ui->passLabel2->hide();
|
||||
ui->passEdit2->hide();
|
||||
ui->passLabel3->hide();
|
||||
ui->passEdit3->hide();
|
||||
setWindowTitle(tr("Unlock wallet for mixing only"));
|
||||
break;
|
||||
case Unlock: // Ask passphrase
|
||||
ui->warningLabel->setText(tr("This operation needs your wallet passphrase to unlock the wallet."));
|
||||
ui->passLabel2->hide();
|
||||
@ -157,7 +162,7 @@ void AskPassphraseDialog::accept()
|
||||
} break;
|
||||
case UnlockMixing:
|
||||
case Unlock:
|
||||
if(!model->setWalletLocked(false, oldpass, ui->mixingOnlyCheckBox->isChecked()))
|
||||
if(!model->setWalletLocked(false, oldpass, mode == UnlockMixing))
|
||||
{
|
||||
QMessageBox::critical(this, tr("Wallet unlock failed"),
|
||||
tr("The passphrase entered for the wallet decryption was incorrect."));
|
||||
|
@ -108,22 +108,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QCheckBox" name="mixingOnlyCheckBox">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Only for mixing via PrivateSend</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
|
Loading…
Reference in New Issue
Block a user