]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiLabel.cpp
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / GuiLabel.cpp
index 6d9ee79daee40e912f591210b08bc146d1655f68..5d1ea4a3ef6aaa62efc09a43219a9e0954f67eda 100644 (file)
@@ -54,7 +54,17 @@ docstring GuiLabel::dialogToParams() const
 {
        InsetCommandParams params(insetCode());
        params["name"] = qstring_to_ucs4(keywordED->text());
-       return from_ascii(InsetLabel::params2string("label", params));
+       return from_utf8(InsetLabel::params2string(params));
+}
+
+
+bool GuiLabel::initialiseParams(std::string const & data)
+{
+       InsetCommandParams p(insetCode());
+       if (!InsetCommand::string2params(data, p))
+               return false;
+       keywordED->setText(toqstr(p["name"]));
+       return true;
 }