Browse Source

[Qt] group variables below initial if-clauses in AmountSpinBox::stepEnabled

0.13
Philip Kaufmann 10 years ago
parent
commit
80dd50ccba
  1. 5
      src/qt/bitcoinamountfield.cpp

5
src/qt/bitcoinamountfield.cpp

@ -166,11 +166,12 @@ protected: @@ -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…
Cancel
Save