Correctly format system folder strings

This commit is contained in:
craig.p.drummond
2014-05-23 21:41:45 +00:00
committed by craig.p.drummond
parent f8722884cf
commit 27cb29f669
2 changed files with 7 additions and 7 deletions

View File

@@ -698,9 +698,9 @@ QString Utils::cacheDir(const QString &sub, bool create)
QString Utils::systemDir(const QString &sub)
{
#if defined Q_OS_WIN || defined Q_OS_MAC
return dirSyntax(QCoreApplication::applicationDirPath())+(sub.isEmpty() ? QString() : (sub+constDirSep));
return fixPath(QCoreApplication::applicationDirPath())+(sub.isEmpty() ? QString() : (sub+constDirSep));
#else
return QString(INSTALL_PREFIX "/share/")+QCoreApplication::applicationName()+constDirSep+(sub.isEmpty() ? QString() : (sub+constDirSep));
return fixPath(QString(INSTALL_PREFIX "/share/")+QCoreApplication::applicationName()+constDirSep+(sub.isEmpty() ? QString() : sub));
#endif
}