mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 13:43:43 +01:00
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
This commit is contained in:
@@ -145,6 +145,11 @@ void BitcoinAmountField::unitChanged(int idx)
|
|||||||
amount->setDecimals(BitcoinUnits::decimals(currentUnit));
|
amount->setDecimals(BitcoinUnits::decimals(currentUnit));
|
||||||
amount->setMaximum(qPow(10, BitcoinUnits::amountDigits(currentUnit)) - qPow(10, -amount->decimals()));
|
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(valid)
|
||||||
{
|
{
|
||||||
// If value was valid, re-place it in the widget with the new unit
|
// If value was valid, re-place it in the widget with the new unit
|
||||||
|
|||||||
Reference in New Issue
Block a user