1
0

Modify format_satoshis to display amounts according to locale.

In particular, thousands and decimal point separators are taken from locale.
This commit is contained in:
Neil Booth
2015-04-29 10:13:41 +09:00
parent 4bed294ddd
commit 83e05b1183
2 changed files with 17 additions and 22 deletions

View File

@@ -20,6 +20,6 @@ class HistoryWidget(QTreeWidget):
if date is None:
date = _("Unknown")
item = QTreeWidgetItem([amount, address, date])
if float(amount) < 0:
if amount.find('-') != -1:
item.setForeground(0, QBrush(QColor("#BC1E1E")))
self.insertTopLevelItem(0, item)