From a4c56614435fafdf502b807ea18e2d4bf2a8e17d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=A0rajer?= Date: Sun, 28 Feb 2016 18:55:10 +0100 Subject: [PATCH] make fix for #2976 Qt5.3 compatible. --- src/persistence/settings.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/persistence/settings.cpp b/src/persistence/settings.cpp index be9b9a97d..cbdd3583e 100644 --- a/src/persistence/settings.cpp +++ b/src/persistence/settings.cpp @@ -565,7 +565,10 @@ QString Settings::getAppDataDirPath() return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + QDir::separator() + "Library" + QDir::separator() + "Application Support" + QDir::separator() + "Tox")+QDir::separator(); #else - return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + // TODO: change QStandardPaths::DataLocation to AppDataLocation when upgrate Qt to 5.4+ + // For now we need support Qt 5.3, so we use deprecated DataLocation + // BTW, it's not a big deal since for linux AppDataLocation and DataLocation are equal + return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QDir::separator() + "tox")+QDir::separator(); #endif }