mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 17:33:49 +02:00
Merge pull request #3056 from birarda/master
fix rounding of credit balance in application title
This commit is contained in:
commit
19195f9119
1 changed files with 1 additions and 1 deletions
|
@ -3189,7 +3189,7 @@ void Application::updateWindowTitle(){
|
|||
float creditBalance = accountManager.getAccountInfo().getBalance() / SATOSHIS_PER_CREDIT;
|
||||
|
||||
QString creditBalanceString;
|
||||
creditBalanceString.sprintf("%.8f", creditBalance);
|
||||
creditBalanceString.sprintf("%.8f", floor(creditBalance + 0.5));
|
||||
|
||||
title += " - ₵" + creditBalanceString;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue