git://git.novaco.in
/
electrum-nvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
show list of requests in receive tab
[electrum-nvc.git]
/
gui
/
qt
/
amountedit.py
diff --git
a/gui/qt/amountedit.py
b/gui/qt/amountedit.py
index
673e199
..
d7b0a92
100644
(file)
--- a/
gui/qt/amountedit.py
+++ b/
gui/qt/amountedit.py
@@
-70,6
+70,10
@@
class BTCAmountEdit(AmountEdit):
return int( p * x )
def setAmount(self, amount):
+ if amount is None:
+ self.setText("")
+ return
+
p = pow(10, self.decimal_point())
x = amount / Decimal(p)
self.setText(str(x))