From: Juergen Spitzmueller Date: Thu, 14 Nov 2013 09:42:24 +0000 (+0100) Subject: Do not try to validate custom value in VSpace dialog if it is disabled X-Git-Tag: 2.1.0rc1~428 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=68a4a53b36e614a21218f9825fa41c2b4a07f83b;p=lyx.git Do not try to validate custom value in VSpace dialog if it is disabled --- diff --git a/src/frontends/qt4/GuiVSpace.cpp b/src/frontends/qt4/GuiVSpace.cpp index dc08bc0c31..cbf9029fac 100644 --- a/src/frontends/qt4/GuiVSpace.cpp +++ b/src/frontends/qt4/GuiVSpace.cpp @@ -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(); }