]> git.lyx.org Git - features.git/commitdiff
Fix http://bugzilla.lyx.org/show_bug.cgi?id=5191
authorAbdelrazak Younes <younes@lyx.org>
Wed, 3 Sep 2008 12:59:36 +0000 (12:59 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 3 Sep 2008 12:59:36 +0000 (12:59 +0000)
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
src/frontends/qt4/GuiNomencl.h

index b7357194e684b9478610d3e86e4c18aaaf46a9a4..72eabe1709de6dadd363cf48eb2055a937a38a46 100644 (file)
@@ -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;
 }
 
index 7f3084f8e06fd56cf7f0f4cb5c2511c4b5ff9b31..a56576d49528dc34327996b6197d41aa1feae1d0 100644 (file)
@@ -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.