Skip to content

Commit 4826ca4

Browse files
committed
Qt: show wallet name in send confirmation dlg in case of multiwallet
1 parent cfa4133 commit 4826ca4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,11 @@ void SendCoinsDialog::on_sendButton_clicked()
277277
QStringList formatted;
278278
for (const SendCoinsRecipient &rcp : currentTransaction.getRecipients())
279279
{
280-
// generate bold amount string
280+
// generate bold amount string with wallet name in case of multiwallet
281281
QString amount = "<b>" + BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), rcp.amount);
282+
if (model->isMultiwallet()) {
283+
amount.append(" <u>"+tr("from wallet %1").arg(GUIUtil::HtmlEscape(model->getWalletName()))+"</u> ");
284+
}
282285
amount.append("</b>");
283286
// generate monospace address string
284287
QString address = "<span style='font-family: monospace;'>" + rcp.address;

0 commit comments

Comments
 (0)