Commit fa450111 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated QStandardPaths::DataLocation

parent fa9e8383
Pipeline #131939 passed with stage
in 1 minute and 20 seconds
......@@ -54,7 +54,7 @@ void DevelopmentModeController::importMapCSS(const QUrl &url)
auto dest = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
#else
const auto fileName = KAndroidExtras::ContentResolver::fileName(url);
auto dest = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
auto dest = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
#endif
dest += QLatin1String("/org.kde.kosmindoormap/assets/css/");
......@@ -68,7 +68,7 @@ void DevelopmentModeController::purgeMapCSS()
#ifndef Q_OS_ANDROID
QString path = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
#else
QString path = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
QString path = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
#endif
path += QLatin1String("/org.kde.kosmindoormap/assets/css/");
QDir(path).removeRecursively();
......
Supports Markdown
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