Browse Source

sendcoinsdialog: display real failed address string

- display the real string (faulty address), which causes the valid address
  check to fail, instead of a stringified "nonsense" CBitcoinAddress
0.10
Philip Kaufmann 11 years ago
parent
commit
8a041f494f
  1. 3
      src/qt/sendcoinsdialog.cpp

3
src/qt/sendcoinsdialog.cpp

@ -365,9 +365,8 @@ bool SendCoinsDialog::handlePaymentRequest(const SendCoinsRecipient &rv) @@ -365,9 +365,8 @@ bool SendCoinsDialog::handlePaymentRequest(const SendCoinsRecipient &rv)
else {
CBitcoinAddress address(rv.address.toStdString());
if (!address.IsValid()) {
QString strAddress(address.ToString().c_str());
QMessageBox::warning(this, strSendCoins,
tr("Invalid payment address %1").arg(strAddress));
tr("Invalid payment address %1").arg(rv.address));
return false;
}
}

Loading…
Cancel
Save