]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Port from QStandardPaths::DataLocation to QStandardPaths::AppDataLocation
authorDavid Faure <faure@kde.org>
Sat, 31 Oct 2020 13:31:22 +0000 (14:31 +0100)
committerDavid Faure <faure@kde.org>
Sat, 31 Oct 2020 13:31:22 +0000 (14:31 +0100)
They are the same on Linux (but DataLocation is deprecated). On Windows this enables the use of the roaming path.

NO_CHANGELOG

src/views/viewproperties.cpp

index ab3af5149a6127f853f55e359861055cb884e9e7..1f73f3b33ba01d6aac0be7c075b247cb5d59762d 100644 (file)
@@ -392,7 +392,7 @@ bool ViewProperties::exist() const
 
 QString ViewProperties::destinationDir(const QString& subDir) const
 {
-    QString path = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
+    QString path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
     path.append("/view_properties/").append(subDir);
     return path;
 }