X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiHyperlink.cpp;h=8323b65ff3d3f1f625f602fbfa9f53bbfcc5bdca;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=488321973ac8a2c206744a2f8d8edf72fefe9eff;hpb=a65738065959c266cd07df02994478b4fa10f6f1;p=lyx.git diff --git a/src/frontends/qt4/GuiHyperlink.cpp b/src/frontends/qt4/GuiHyperlink.cpp index 488321973a..8323b65ff3 100644 --- a/src/frontends/qt4/GuiHyperlink.cpp +++ b/src/frontends/qt4/GuiHyperlink.cpp @@ -46,6 +46,8 @@ GuiHyperlink::GuiHyperlink(GuiView & lv) setFocusProxy(targetED); + bc().setPolicy(ButtonPolicy::OkCancelReadOnlyPolicy); + bc().setOK(okPB); bc().setCancel(closePB); bc().addReadOnly(targetED); @@ -62,7 +64,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 +103,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; } @@ -119,4 +122,4 @@ Dialog * createGuiHyperlink(GuiView & lv) { return new GuiHyperlink(lv); } } // namespace lyx -#include "GuiHyperlink_moc.cpp" +#include "moc_GuiHyperlink.cpp"