diff --git a/src/libsync/configfile.cpp b/src/libsync/configfile.cpp index 0f2059be26692..253f60f617d4c 100644 --- a/src/libsync/configfile.cpp +++ b/src/libsync/configfile.cpp @@ -951,7 +951,7 @@ void ConfigFile::setAutomaticLogDir(bool enabled) QString ConfigFile::logDir() const { - const auto defaultLogDir = QString(configPath() + QStringLiteral("/logs")); + const auto defaultLogDir = QString(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + QStringLiteral("/logs")); QSettings settings(configFile(), QSettings::IniFormat); return settings.value(QLatin1String(logDirC), defaultLogDir).toString(); }