mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
GUI: Emit BitcoinAmountField::valueChanged when unit changes even if the current value is invalid
This commit is contained in:
parent
954f7758ae
commit
1f0b6886b7
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue