diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-03-29 01:40:32 -0700 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-03-29 01:40:32 -0700 |
commit | 8142ac2c18eda6550058c930151908682ebec350 (patch) | |
tree | 63a0138e93e2a9a7491251abe5d0e0b34f4371df /src/qt/bitcoinamountfield.cpp | |
parent | 792f9c81eb80fc68d868dcc1e494d2b5d899073f (diff) | |
parent | f688056f9d4958b50911933496bf1fa2e602d396 (diff) |
Merge pull request #2393 from r000n/staging
Staging - GUI fixes for upstream
Diffstat (limited to 'src/qt/bitcoinamountfield.cpp')
-rw-r--r-- | src/qt/bitcoinamountfield.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp index ddf185c415..4fa2ca508b 100644 --- a/src/qt/bitcoinamountfield.cpp +++ b/src/qt/bitcoinamountfield.cpp @@ -145,6 +145,11 @@ void BitcoinAmountField::unitChanged(int idx) amount->setDecimals(BitcoinUnits::decimals(currentUnit)); amount->setMaximum(qPow(10, BitcoinUnits::amountDigits(currentUnit)) - qPow(10, -amount->decimals())); + if(currentUnit == BitcoinUnits::uBTC) + amount->setSingleStep(0.01); + else + amount->setSingleStep(0.001); + if(valid) { // If value was valid, re-place it in the widget with the new unit |