Revert broken changes
This commit is contained in:
committed by
craig.p.drummond
parent
1cb6aee33a
commit
eb7635a303
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user