diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-01-13 11:51:45 +0100 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-01-13 11:51:45 +0100 |
commit | 80dd50ccba97fc7cd0d005f51622d6a2ad8dad84 (patch) | |
tree | c1c0839610fc7bde1f8a5110d841de0a8923d7dd /src | |
parent | 0fd9e2bf43d217d9a76003476661c8ab53606548 (diff) |
[Qt] group variables below initial if-clauses in AmountSpinBox::stepEnabled
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/bitcoinamountfield.cpp | 5 |
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) |