1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

make fix for #2976 Qt5.3 compatible.

This commit is contained in:
Michał Šrajer 2016-02-28 18:55:10 +01:00
parent 3227f6ea5b
commit a4c5661443

View File

@ -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
}