mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Do not try to validate custom value in VSpace dialog if it is disabled
This commit is contained in:
parent
00fb0a3e10
commit
68a4a53b36
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user