Revert broken changes

This commit is contained in:
craig.p.drummond
2014-04-12 15:54:29 +00:00
committed by craig.p.drummond
parent 1cb6aee33a
commit eb7635a303

View File

@@ -687,12 +687,8 @@ QString Utils::cacheDir(const QString &sub, bool create)
return userDir(QDesktopServices::storageLocation(QDesktopServices::CacheLocation)+constDirSep, sub, create);
#else
QString env = qgetenv("XDG_CACHE_HOME");
#ifdef ENABLE_UBUNTU
return dataDir(".cache", create);
#else
return userDir((env.isEmpty() ? QDir::homePath() + "/.cache" : env) + constDirSep+FOLDER_NAME+constDirSep, sub, create);
#endif
#endif
}
bool Utils::moveFile(const QString &from, const QString &to)