git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d9d7643
)
setAmount: convert to int
author
ThomasV
<thomasv@gitorious>
Wed, 11 Jun 2014 13:36:40 +0000 (15:36 +0200)
committer
ThomasV
<thomasv@gitorious>
Wed, 11 Jun 2014 13:36:40 +0000 (15:36 +0200)
plugins/exchange_rate.py
patch
|
blob
|
history
diff --git
a/plugins/exchange_rate.py
b/plugins/exchange_rate.py
index
b065f89
..
8195695
100644
(file)
--- a/
plugins/exchange_rate.py
+++ b/
plugins/exchange_rate.py
@@
-643,6
+643,6
@@
class Plugin(BasePlugin):
exchange_rate = self.exchanger.exchange(Decimal("1.0"), self.fiat_unit())
if exchange_rate is not None:
btc_amount = Decimal(fiat_amount) / exchange_rate
- self.gui.main_window.amount_e.setAmount(btc_amount*Decimal(100000000))
+ self.gui.main_window.amount_e.setAmount(int(btc_amount*Decimal(100000000)))
self.fiat_e.textChanged.connect(fiat_changed)
grid.addWidget(self.fiat_e, 4, 3, Qt.AlignHCenter)