Skip to content

Commit 55fdce2

Browse files
committed
Signal the amountChanged if the first value is 0 in BitcoinAmount
1 parent a8eccdc commit 55fdce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qml/bitcoinamount.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ qint64 BitcoinAmount::satoshi() const
4040

4141
void BitcoinAmount::setSatoshi(qint64 new_amount)
4242
{
43-
m_isSet = true;
44-
if (m_satoshi != new_amount) {
43+
if (m_satoshi != new_amount || m_isSet != true) {
44+
m_isSet = true;
4545
m_satoshi = new_amount;
4646
Q_EMIT amountChanged();
4747
}

0 commit comments

Comments
 (0)