diff --git a/src/frontends/qt4/GuiNomenclature.cpp b/src/frontends/qt4/GuiNomenclature.cpp index 92250a7b27..7415f7f3df 100644 --- a/src/frontends/qt4/GuiNomenclature.cpp +++ b/src/frontends/qt4/GuiNomenclature.cpp @@ -60,6 +60,16 @@ docstring GuiNomenclature::dialogToParams() const } +bool GuiNomenclature::initialiseParams(std::string const & data) +{ + InsetCommandParams p(insetCode()); + if (!InsetCommand::string2params(data, p)) + return false; + symbolED->setText(toqstr(p["symbol"])); + return true; +} + + bool GuiNomenclature::checkWidgets() const { if (!InsetParamsWidget::checkWidgets()) diff --git a/src/frontends/qt4/GuiNomenclature.h b/src/frontends/qt4/GuiNomenclature.h index 502f8de53a..dcdd10fab3 100644 --- a/src/frontends/qt4/GuiNomenclature.h +++ b/src/frontends/qt4/GuiNomenclature.h @@ -36,6 +36,7 @@ private: void paramsToDialog(Inset const *); docstring dialogToParams() const; bool checkWidgets() const; + bool initialiseParams(std::string const &); //@} };