diff --git a/src/misc/settings.cpp b/src/misc/settings.cpp index 1c9ff4b29..aef8b8a3a 100644 --- a/src/misc/settings.cpp +++ b/src/misc/settings.cpp @@ -300,7 +300,8 @@ QString Settings::getSettingsDirPath() // workaround for https://bugreports.qt-project.org/browse/QTBUG-38845 #ifdef Q_OS_WIN - return "%APPDATA%/tox/"; + return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + + QDir::separator() + "AppData" + QDir::separator() + "Roaming" + QDir::separator() + "tox"); #else return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + QDir::separator() + "tox"); #endif