Do not try to validate custom value in VSpace dialog if it is disabled

This commit is contained in:
Juergen Spitzmueller 2013-11-14 10:42:24 +01:00
parent 00fb0a3e10
commit 68a4a53b36

View File

@ -57,6 +57,7 @@ GuiVSpace::GuiVSpace(QWidget * parent) : InsetParamsWidget(parent)
// initialize the length validator
addCheckedWidget(valueLE, valueL);
enableCustom(spacingCO->currentIndex());
}
@ -64,7 +65,9 @@ void GuiVSpace::enableCustom(int selection)
{
bool const enable = selection == 5;
valueLE->setEnabled(enable);
valueL->setEnabled(enable);
unitCO->setEnabled(enable);
changed();
}