diff options
author | Roman Mindalev <r000n@r000n.net> | 2013-03-23 08:20:51 +0400 |
---|---|---|
committer | Roman Mindalev <r000n@r000n.net> | 2013-03-23 08:20:51 +0400 |
commit | afee36d379868f81705c960e389aa90d6f546940 (patch) | |
tree | 3c8b71a1b818218bfe71f09ad4b2fd91e5e19020 | |
parent | b804f1cd56f425709baf415e0b05ec99fa3bccee (diff) |
Fix transaction fee in uBTC
Step for buttons 'up' and 'down' - 0.001. With BTC and mBTC all ok, but
0.001 uBTC is lower than minimal value (satoshi)
User should press 10 times on 'up' button to get 0.01 uBTC
-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 |