]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiInclude.cpp
Fix bug #7540. Patch based upon one added to bug report by Max Funk.
[lyx.git] / src / frontends / qt4 / GuiInclude.cpp
index 32c8f097a0b2c3aaa9530b8cd5e223ba3d08449f..7f5c96bd1894ac0b2a4d5dd2c2917c1209d401a9 100644 (file)
@@ -328,14 +328,14 @@ QString GuiInclude::browse(QString const & in_name, Type in_type) const
 
        QString const docpath = toqstr(support::onlyPath(buffer().absFileName()));
 
-       return browseRelFile(in_name, docpath, title, filters, false, 
+       return browseRelToParent(in_name, docpath, title, filters, false,
                qt_("Documents|#o#O"), toqstr(lyxrc.document_path));
 }
 
 
 bool GuiInclude::initialiseParams(std::string const & data)
 {
-       InsetCommand::string2params("include", data, params_);
+       InsetCommand::string2params(data, params_);
        paramsToDialog(params_);
        return true;
 }
@@ -343,7 +343,7 @@ bool GuiInclude::initialiseParams(std::string const & data)
 
 void GuiInclude::dispatchParams()
 {
-       std::string const lfun = InsetCommand::params2string("include", params_);
+       std::string const lfun = InsetCommand::params2string(params_);
        dispatch(FuncRequest(getLfun(), lfun));
 }