Merge pull request #1890

8022db3 Proof: don't round amounts received (selsta)
This commit is contained in:
luigi1111 2019-01-09 17:52:26 -06:00
commit 36eb1f80e1
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -880,12 +880,11 @@ ApplicationWindow {
informationPopup.text = qsTr("Bad signature"); informationPopup.text = qsTr("Bad signature");
informationPopup.icon = StandardIcon.Critical; informationPopup.icon = StandardIcon.Critical;
} else if (received > 0) { } else if (received > 0) {
received = received / 1e12
if (in_pool) { if (in_pool) {
informationPopup.text = qsTr("This address received %1 monero, but the transaction is not yet mined").arg(received); informationPopup.text = qsTr("This address received %1 monero, but the transaction is not yet mined").arg(walletManager.displayAmount(received));
} }
else { else {
informationPopup.text = qsTr("This address received %1 monero, with %2 confirmation(s).").arg(received).arg(confirmations); informationPopup.text = qsTr("This address received %1 monero, with %2 confirmation(s).").arg(walletManager.displayAmount(received)).arg(confirmations);
} }
} }
else { else {