changeset 97:ccd1dbea2536

Look for replacements in resources on macos
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 07 Oct 2016 12:31:51 +0200
parents 74d2fb50461b
children dd322a4b90d9
files src/converter.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/converter.cpp	Thu Oct 06 17:20:28 2016 +0200
+++ b/src/converter.cpp	Fri Oct 07 12:31:51 2016 +0200
@@ -188,7 +188,11 @@
     }
 
     /* Look in ../share/apps/PROJECT_NAME */
+#ifndef Q_OS_MAC
     ourDir.cd(QStringLiteral("../share/apps/" APPNAME).toLower());
+#else
+    ourDir.cd(QStringLiteral("../../Resources"));
+#endif
     if (ourDir.exists(filename)) {
         regexs = loadExpressionsFromFile(ourDir.filePath(filename), errors);
     } else {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)