mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 10:30:04 +00:00
[Qt] group variables below initial if-clauses in AmountSpinBox::stepEnabled
This commit is contained in:
parent
0fd9e2bf43
commit
80dd50ccba
@ -166,11 +166,12 @@ protected:
|
||||
|
||||
StepEnabled stepEnabled() const
|
||||
{
|
||||
StepEnabled rv = 0;
|
||||
if (isReadOnly()) // Disable steps when AmountSpinBox is read-only
|
||||
return StepNone;
|
||||
if(text().isEmpty()) // Allow step-up with empty field
|
||||
if (text().isEmpty()) // Allow step-up with empty field
|
||||
return StepUpEnabled;
|
||||
|
||||
StepEnabled rv = 0;
|
||||
bool valid = false;
|
||||
CAmount val = value(&valid);
|
||||
if(valid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user