From eb7635a30385b583c1a33d64cff23042c0986754 Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Sat, 12 Apr 2014 15:54:29 +0000 Subject: [PATCH] Revert broken changes --- support/utils.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/support/utils.cpp b/support/utils.cpp index a0552a634..f342b73b0 100644 --- a/support/utils.cpp +++ b/support/utils.cpp @@ -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)