Browse Source

qml: work around qeamount copy from None

patch-4
Sander van Grieken 3 years ago
parent
commit
11b8d5e2f0
  1. 3
      electrum/gui/qml/qetypes.py

3
electrum/gui/qml/qetypes.py

@ -78,6 +78,9 @@ class QEAmount(QObject):
return not(self._is_max or self._amount_sat or self._amount_msat)
def copyFrom(self, amount):
if not amount:
self._logger.warning('copyFrom with None argument. assuming 0') # TODO
amount = QEAmount()
self.satsInt = amount.satsInt
self.msatsInt = amount.msatsInt
self.isMax = amount.isMax

Loading…
Cancel
Save