File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -216,12 +216,19 @@ void SendCoinsDialog::on_sendButton_clicked()
216
216
questionString.append (" </span> " );
217
217
questionString.append (tr (" added as transaction fee" ));
218
218
}
219
- if (txFee > 0 || recipients.count () > 1 )
219
+
220
+ // add total amount in all subdivision units
221
+ questionString.append (" <hr />" );
222
+ qint64 totalAmount = currentTransaction.getTotalTransactionAmount () + txFee;
223
+ QStringList alternativeUnits;
224
+ foreach (BitcoinUnits::Unit u, BitcoinUnits::availableUnits ())
220
225
{
221
- // add total amount string if there are more then one recipients or a fee is required
222
- questionString.append (" <hr />" );
223
- questionString.append (tr (" Total Amount %1" ).arg (BitcoinUnits::formatWithUnit (model->getOptionsModel ()->getDisplayUnit (), currentTransaction.getTotalTransactionAmount ()+txFee)));
226
+ if (u != model->getOptionsModel ()->getDisplayUnit ())
227
+ alternativeUnits.append (BitcoinUnits::formatWithUnit (u, totalAmount));
224
228
}
229
+ questionString.append (tr (" Total Amount %1 (= %2)" )
230
+ .arg (BitcoinUnits::formatWithUnit (model->getOptionsModel ()->getDisplayUnit (), totalAmount))
231
+ .arg (alternativeUnits.join (" " +tr (" or" )+" " )));
225
232
226
233
QMessageBox::StandardButton retval = QMessageBox::question (this , tr (" Confirm send coins" ),
227
234
questionString.arg (formatted.join (" <br />" )),
You can’t perform that action at this time.
0 commit comments