aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qt/bitcoinamountfield.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp
index 3e0ca0282b..4c00aca985 100644
--- a/src/qt/bitcoinamountfield.cpp
+++ b/src/qt/bitcoinamountfield.cpp
@@ -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)