corrected stakin dialog + added rpc staking

This commit is contained in:
janko33bd
2018-02-03 23:16:28 +01:00
parent d0957c589d
commit 0cb80ee889
9 changed files with 27 additions and 7 deletions

View File

@@ -267,14 +267,16 @@ void WalletView::changePassphrase()
dlg.exec();
}
void WalletView::unlockWallet()
void WalletView::unlockWallet(bool fromMenu)
{
if(!walletModel)
return;
// Unlock wallet when requested by wallet model
if (walletModel->getEncryptionStatus() == WalletModel::Locked)
{
AskPassphraseDialog dlg(AskPassphraseDialog::Unlock, this);
AskPassphraseDialog::Mode mode = fromMenu ?
AskPassphraseDialog::UnlockStaking : AskPassphraseDialog::Unlock;
AskPassphraseDialog dlg(mode, this);
dlg.setModel(walletModel);
dlg.exec();
}