mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #591
This commit is contained in:
parent
4c0ae2503a
commit
fd67a375ea
@ -300,7 +300,8 @@ QString Settings::getSettingsDirPath()
|
|||||||
|
|
||||||
// workaround for https://bugreports.qt-project.org/browse/QTBUG-38845
|
// workaround for https://bugreports.qt-project.org/browse/QTBUG-38845
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
return "%APPDATA%/tox/";
|
return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)
|
||||||
|
+ QDir::separator() + "AppData" + QDir::separator() + "Roaming" + QDir::separator() + "tox");
|
||||||
#else
|
#else
|
||||||
return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + QDir::separator() + "tox");
|
return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + QDir::separator() + "tox");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user