|
|
@ -789,10 +789,8 @@ void SendCoinsDialog::coinControlChangeEdited(const QString& text) |
|
|
|
} |
|
|
|
} |
|
|
|
else // Valid address
|
|
|
|
else // Valid address
|
|
|
|
{ |
|
|
|
{ |
|
|
|
CKeyID keyid; |
|
|
|
const CTxDestination dest = addr.Get(); |
|
|
|
addr.GetKeyID(keyid); |
|
|
|
if (!model->IsSpendable(dest)) { |
|
|
|
if (!model->havePrivKey(keyid)) // Unknown change address
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
ui->labelCoinControlChangeLabel->setText(tr("Warning: Unknown change address")); |
|
|
|
ui->labelCoinControlChangeLabel->setText(tr("Warning: Unknown change address")); |
|
|
|
|
|
|
|
|
|
|
|
// confirmation dialog
|
|
|
|
// confirmation dialog
|
|
|
@ -800,7 +798,7 @@ void SendCoinsDialog::coinControlChangeEdited(const QString& text) |
|
|
|
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel); |
|
|
|
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel); |
|
|
|
|
|
|
|
|
|
|
|
if(btnRetVal == QMessageBox::Yes) |
|
|
|
if(btnRetVal == QMessageBox::Yes) |
|
|
|
CoinControlDialog::coinControl->destChange = addr.Get(); |
|
|
|
CoinControlDialog::coinControl->destChange = dest; |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
ui->lineEditCoinControlChange->setText(""); |
|
|
|
ui->lineEditCoinControlChange->setText(""); |
|
|
@ -819,7 +817,7 @@ void SendCoinsDialog::coinControlChangeEdited(const QString& text) |
|
|
|
else |
|
|
|
else |
|
|
|
ui->labelCoinControlChangeLabel->setText(tr("(no label)")); |
|
|
|
ui->labelCoinControlChangeLabel->setText(tr("(no label)")); |
|
|
|
|
|
|
|
|
|
|
|
CoinControlDialog::coinControl->destChange = addr.Get(); |
|
|
|
CoinControlDialog::coinControl->destChange = dest; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|