Browse Source

[Qt] allow unit changes for read-only BitcoinAmountField

- fixes #5725
0.13
Philip Kaufmann 10 years ago
parent
commit
fdf80ea7b1
  1. 1
      src/qt/bitcoinamountfield.cpp

1
src/qt/bitcoinamountfield.cpp

@ -278,7 +278,6 @@ void BitcoinAmountField::setValue(const CAmount& value)
void BitcoinAmountField::setReadOnly(bool fReadOnly) void BitcoinAmountField::setReadOnly(bool fReadOnly)
{ {
amount->setReadOnly(fReadOnly); amount->setReadOnly(fReadOnly);
unit->setEnabled(!fReadOnly);
} }
void BitcoinAmountField::unitChanged(int idx) void BitcoinAmountField::unitChanged(int idx)

Loading…
Cancel
Save