]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiHyperlink.cpp
Patch from Vincent van Ravesteijn.
[lyx.git] / src / frontends / qt4 / GuiHyperlink.cpp
index e195ef378de958ec2baa7ffeb3f5a8811afe4354..58819fd2e034167e508be51e0859357a34451078 100644 (file)
@@ -27,7 +27,7 @@ namespace frontend {
 
 GuiHyperlink::GuiHyperlink(GuiView & lv)
        : GuiDialog(lv, "href", qt_("Hyperlink")),
-    params_(insetCode(fromqstr("href")))
+    params_(insetCode("href"))
 {
        setupUi(this);
 
@@ -62,7 +62,7 @@ void GuiHyperlink::changed_adaptor()
 }
 
 
-void GuiHyperlink::updateContents()
+void GuiHyperlink::paramsToDialog(InsetCommandParams const & icp)
 {
        targetED->setText(toqstr(params_["target"]));
        nameED->setText(toqstr(params_["name"]));
@@ -101,6 +101,7 @@ bool GuiHyperlink::initialiseParams(std::string const & data)
        // The name passed with LFUN_INSET_APPLY is also the name
        // used to identify the mailer.
        InsetCommand::string2params("href", data, params_);
+       paramsToDialog(params_);
        return true;
 }