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.