From 68a4a53b36e614a21218f9825fa41c2b4a07f83b Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 14 Nov 2013 10:42:24 +0100 Subject: [PATCH] Do not try to validate custom value in VSpace dialog if it is disabled --- src/frontends/qt4/GuiVSpace.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- 2.39.2