else if(type == Receive)
{
// Generate a new address to associate with given label
+ WalletModel::UnlockContext ctx(walletModel->requestUnlock());
+ if(!ctx.isValid())
+ {
+ // Unlock wallet failed or was cancelled
+ editStatus = WALLET_UNLOCK_FAILURE;
+ return QString();
+ }
+
strAddress = CBitcoinAddress(wallet->GetOrReuseKeyFromPool()).ToString();
}
else