Mercurial > clickerconvert
comparison src/converter.cpp @ 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 | 80ff6591101a |
children | dd322a4b90d9 |
comparison
equal
deleted
inserted
replaced
96:74d2fb50461b | 97:ccd1dbea2536 |
---|---|
186 regexs = loadExpressionsFromFile(ourDir.filePath(filename), errors); | 186 regexs = loadExpressionsFromFile(ourDir.filePath(filename), errors); |
187 return regexs; | 187 return regexs; |
188 } | 188 } |
189 | 189 |
190 /* Look in ../share/apps/PROJECT_NAME */ | 190 /* Look in ../share/apps/PROJECT_NAME */ |
191 #ifndef Q_OS_MAC | |
191 ourDir.cd(QStringLiteral("../share/apps/" APPNAME).toLower()); | 192 ourDir.cd(QStringLiteral("../share/apps/" APPNAME).toLower()); |
193 #else | |
194 ourDir.cd(QStringLiteral("../../Resources")); | |
195 #endif | |
192 if (ourDir.exists(filename)) { | 196 if (ourDir.exists(filename)) { |
193 regexs = loadExpressionsFromFile(ourDir.filePath(filename), errors); | 197 regexs = loadExpressionsFromFile(ourDir.filePath(filename), errors); |
194 } else { | 198 } else { |
195 qDebug() << "Failed to find regular expressions."; | 199 qDebug() << "Failed to find regular expressions."; |
196 } | 200 } |