mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Do not show list for the only recipient.
This commit is contained in:
@@ -321,7 +321,7 @@ void SendCoinsDialog::on_sendButton_clicked()
|
|||||||
QString questionString = tr("Are you sure you want to send?");
|
QString questionString = tr("Are you sure you want to send?");
|
||||||
questionString.append("<br /><span style='font-size:10pt;'>");
|
questionString.append("<br /><span style='font-size:10pt;'>");
|
||||||
questionString.append(tr("Please, review your transaction."));
|
questionString.append(tr("Please, review your transaction."));
|
||||||
questionString.append("</span>");
|
questionString.append("</span>%1");
|
||||||
|
|
||||||
if(txFee > 0)
|
if(txFee > 0)
|
||||||
{
|
{
|
||||||
@@ -362,7 +362,17 @@ void SendCoinsDialog::on_sendButton_clicked()
|
|||||||
questionString.append(QString("<br /><span style='font-size:10pt; font-weight:normal;'>(=%1)</span>")
|
questionString.append(QString("<br /><span style='font-size:10pt; font-weight:normal;'>(=%1)</span>")
|
||||||
.arg(alternativeUnits.join(" " + tr("or") + " ")));
|
.arg(alternativeUnits.join(" " + tr("or") + " ")));
|
||||||
|
|
||||||
SendConfirmationDialog confirmationDialog(tr("Confirm send coins"), questionString, "To review recipient list click \"Show Details...\"", formatted.join("\n\n"), SEND_CONFIRM_DELAY, this);
|
QString informative_text;
|
||||||
|
QString detailed_text;
|
||||||
|
if (formatted.size() > 1) {
|
||||||
|
questionString = questionString.arg("");
|
||||||
|
informative_text = tr("To review recipient list click \"Show Details...\"");
|
||||||
|
detailed_text = formatted.join("\n\n");
|
||||||
|
} else {
|
||||||
|
questionString = questionString.arg("<br /><br />" + formatted.at(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
SendConfirmationDialog confirmationDialog(tr("Confirm send coins"), questionString, informative_text, detailed_text, SEND_CONFIRM_DELAY, this);
|
||||||
confirmationDialog.exec();
|
confirmationDialog.exec();
|
||||||
QMessageBox::StandardButton retval = static_cast<QMessageBox::StandardButton>(confirmationDialog.result());
|
QMessageBox::StandardButton retval = static_cast<QMessageBox::StandardButton>(confirmationDialog.result());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user