1
0

qml: work around qeamount copy from None

This commit is contained in:
Sander van Grieken
2022-09-20 19:14:36 +02:00
parent e5f21fb7b5
commit 11b8d5e2f0

View File

@@ -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