GUI: Emit BitcoinAmountField::valueChanged when unit changes even if the current value is invalid

This commit is contained in:
Luke Dashjr 2019-02-22 22:53:58 +00:00 committed by Gregory Sanders
parent 954f7758ae
commit 1f0b6886b7

View file

@ -133,9 +133,7 @@ public:
if (!was_pegged) {
// Leave the text as-is, if it's valid
value(&valid);
if (valid) {
Q_EMIT valueChanged();
} else {
if (!valid) {
clear();
}
} else
@ -143,6 +141,7 @@ public:
setValue(val);
else
clear();
Q_EMIT valueChanged();
}
void setSingleStep(const CAmount& step)