From 37e389baf7b3b04ae04c94081e6f9862f4c46306 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 3 Sep 2008 12:59:36 +0000 Subject: [PATCH] Fix http://bugzilla.lyx.org/show_bug.cgi?id=5191 Patch from Vincent van Ravesteijn git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26291 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiNomencl.cpp | 3 ++- src/frontends/qt4/GuiNomencl.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiNomencl.cpp b/src/frontends/qt4/GuiNomencl.cpp index b7357194e6..72eabe1709 100644 --- a/src/frontends/qt4/GuiNomencl.cpp +++ b/src/frontends/qt4/GuiNomencl.cpp @@ -64,7 +64,7 @@ void GuiNomenclature::reject() } -void GuiNomenclature::updateContents() +void GuiNomenclature::paramsToDialog(InsetCommandParams const & icp) { prefixED->setText(toqstr(params_["prefix"])); symbolED->setText(toqstr(params_["symbol"])); @@ -96,6 +96,7 @@ bool GuiNomenclature::isValid() bool GuiNomenclature::initialiseParams(std::string const & data) { InsetCommand::string2params("nomenclature", data, params_); + paramsToDialog(params_); return true; } diff --git a/src/frontends/qt4/GuiNomencl.h b/src/frontends/qt4/GuiNomencl.h index 7f3084f8e0..a56576d495 100644 --- a/src/frontends/qt4/GuiNomencl.h +++ b/src/frontends/qt4/GuiNomencl.h @@ -39,9 +39,11 @@ private: /// Apply changes void applyView(); /// update - void updateContents(); + void updateContents() { }; /// bool initialiseParams(std::string const & data); + /// + void paramsToDialog(InsetCommandParams const & icp); /// clean-up on hide. void clearParams() { params_.clear(); } /// clean-up on hide.