Changeset View
Changeset View
Standalone View
Standalone View
src/qt/signverifymessagedialog.cpp
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | void SignVerifyMessageDialog::on_signMessageButton_SM_clicked() { | ||||
WalletModel::UnlockContext ctx(model->requestUnlock()); | WalletModel::UnlockContext ctx(model->requestUnlock()); | ||||
if (!ctx.isValid()) { | if (!ctx.isValid()) { | ||||
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }"); | ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }"); | ||||
ui->statusLabel_SM->setText(tr("Wallet unlock was cancelled.")); | ui->statusLabel_SM->setText(tr("Wallet unlock was cancelled.")); | ||||
return; | return; | ||||
} | } | ||||
CKey key; | CKey key; | ||||
if (!model->getPrivKey(*keyID, key)) { | if (!model->wallet().getPrivKey(*keyID, key)) { | ||||
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }"); | ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }"); | ||||
ui->statusLabel_SM->setText( | ui->statusLabel_SM->setText( | ||||
tr("Private key for the entered address is not available.")); | tr("Private key for the entered address is not available.")); | ||||
return; | return; | ||||
} | } | ||||
CHashWriter ss(SER_GETHASH, 0); | CHashWriter ss(SER_GETHASH, 0); | ||||
ss << strMessageMagic; | ss << strMessageMagic; | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |