Fixed cache directory

This commit is contained in:
nikwen.developer@gmail.com
2014-04-12 21:18:19 +00:00
committed by nikwen.developer@gmail.com
parent 451fe12181
commit 0214923ea7

View File

@@ -688,7 +688,7 @@ QString Utils::dataDir(const QString &sub, bool create)
QString Utils::cacheDir(const QString &sub, bool create)
{
#ifdef ENABLE_UBUNTU
return userDir(QDir::homePath()+"/.local/share"+constDirSep+FOLDER_NAME+constDirSep+"config"+constDirSep, sub, create);
return userDir(QDir::homePath()+"/.local/share"+constDirSep+FOLDER_NAME+constDirSep+"cache"+constDirSep, sub, create);
#elif defined Q_OS_WIN
return userDir(QDesktopServices::storageLocation(QDesktopServices::CacheLocation)+constDirSep, sub, create);
#else