[Qt] allow unit changes for read-only BitcoinAmountField

- fixes #5725
This commit is contained in:
Philip Kaufmann 2015-01-31 17:39:22 +01:00
parent 6af674ecdc
commit fdf80ea7b1

View File

@ -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)