From c881b9f49a187ab053a9789fce82ade38257ecaf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 22 May 2009 17:35:50 +0000 Subject: [PATCH] GuiPrintNomencl.{cpp,h}: - custom without length is not valid. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29785 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiPrintNomencl.cpp | 8 ++++++++ src/frontends/qt4/GuiPrintNomencl.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/frontends/qt4/GuiPrintNomencl.cpp b/src/frontends/qt4/GuiPrintNomencl.cpp index dfa95fb3da..a63866b703 100644 --- a/src/frontends/qt4/GuiPrintNomencl.cpp +++ b/src/frontends/qt4/GuiPrintNomencl.cpp @@ -129,6 +129,14 @@ void GuiPrintNomencl::applyView() } +bool GuiPrintNomencl::isValid() +{ + return (setWidthCO->itemData( + setWidthCO->currentIndex()).toString() != "custom" + || !valueLE->text().isEmpty()); +} + + bool GuiPrintNomencl::initialiseParams(std::string const & data) { InsetCommand::string2params("nomencl_print", data, params_); diff --git a/src/frontends/qt4/GuiPrintNomencl.h b/src/frontends/qt4/GuiPrintNomencl.h index 930cf7ce36..bd4e031078 100644 --- a/src/frontends/qt4/GuiPrintNomencl.h +++ b/src/frontends/qt4/GuiPrintNomencl.h @@ -48,6 +48,8 @@ private: void dispatchParams(); /// bool isBufferDependent() const { return true; } + /// + bool isValid(); /// InsetCommandParams params_; -- 2.39.5