commit a91402dc64cb6c73b355465ec11868cf1d0a443d
Author: Stephan Witt <[email protected]>
Date: Tue Apr 18 09:32:22 2017 +0200
use examples folder setting from preferences
---
src/frontends/qt4/GuiView.cpp | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index 7bfb7cc..db99d6a 100644
--- a/src/frontends/qt4/GuiView.cpp
+++ b/src/frontends/qt4/GuiView.cpp
@@ -2153,8 +2153,7 @@ void GuiView::openDocument(string const & fname)
if (fname.empty()) {
FileDialog dlg(qt_("Select document to open"));
dlg.setButton1(qt_("Documents|#o#O"),
toqstr(lyxrc.document_path));
- dlg.setButton2(qt_("Examples|#E#e"),
-
toqstr(addPath(package().system_support().absFileName(), "examples")));
+ dlg.setButton2(qt_("Examples|#E#e"),
toqstr(lyxrc.example_path));
QStringList const filter(qt_("LyX Documents (*.lyx)"));
FileDialog::Result result =
@@ -2292,8 +2291,7 @@ void GuiView::importDocument(string const & argument)
FileDialog dlg(toqstr(text));
dlg.setButton1(qt_("Documents|#o#O"),
toqstr(lyxrc.document_path));
- dlg.setButton2(qt_("Examples|#E#e"),
-
toqstr(addPath(package().system_support().absFileName(), "examples")));
+ dlg.setButton2(qt_("Examples|#E#e"),
toqstr(lyxrc.example_path));
docstring filter = theFormats().prettyName(format);
filter += " (*.{";
@@ -2426,9 +2424,7 @@ void GuiView::insertLyXFile(docstring const & fname)
// FIXME UNICODE
FileDialog dlg(qt_("Select LyX document to insert"));
dlg.setButton1(qt_("Documents|#o#O"),
toqstr(lyxrc.document_path));
- dlg.setButton2(qt_("Examples|#E#e"),
- toqstr(addPath(package().system_support().absFileName(),
- "examples")));
+ dlg.setButton2(qt_("Examples|#E#e"),
toqstr(lyxrc.example_path));
FileDialog::Result result = dlg.open(toqstr(initpath),
QStringList(qt_("LyX Documents
(*.lyx)")));