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.

NO_CHANGELOG
This commit is contained in:
David Faure 2020-10-31 14:31:22 +01:00
parent bf11c835eb
commit 97fbcf3ab5

View 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;
}