Commit 927f3999 authored by David Faure's avatar David Faure
Browse files

Port from QStandardPaths::DataLocation to QStandardPaths::AppDataLocation

They are the same on Linux (but DataLocation is deprecated). On Windows this enables the use of the roaming path.

parent 2ff9192e
......@@ -170,7 +170,7 @@ void LogsImporter::Private::saveKTpDocument()
.arg(m_month, 2, 10, QLatin1Char('0'))
.arg(m_day, 2, 10, QLatin1Char('0'));
QString path = QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QLatin1String("/TpLogger/logs");
QString path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + QLatin1String("/TpLogger/logs");
if (m_isMUCLog) {
path += QDir::separator() + QLatin1String("chatrooms");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment