mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Reset unit to default when clearing the field, to prevent confusion
This commit is contained in:
parent
f2b10f6469
commit
83c8d678aa
1 changed files with 2 additions and 0 deletions
|
|
@ -66,6 +66,8 @@ void BitcoinAmountField::clear()
|
|||
{
|
||||
amount->clear();
|
||||
decimals->clear();
|
||||
// TODO: set default based on configuration
|
||||
unit->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
bool BitcoinAmountField::validate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue