Commit d46121c4 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix save path for custom render profiles on Windows following commit 90b1e4

Should fix #1303
parent 11ed0f60
Pipeline #123235 passed with stage
in 11 minutes and 17 seconds
......@@ -668,7 +668,7 @@ void RenderWidget::slotSaveProfile()
bool RenderWidget::saveProfile(QDomElement newprofile)
{
QDir dir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + QStringLiteral("/export/"));
QDir dir(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + QStringLiteral("/export/"));
if (!dir.exists()) {
dir.mkpath(QStringLiteral("."));
}
......@@ -2096,8 +2096,8 @@ void RenderWidget::parseProfiles(const QString &selectedProfile)
for (const QString &filename : qAsConst(fileList)) {
parseFile(directory.absoluteFilePath(filename), true);
}
if (QFile::exists(exportFolder + QStringLiteral("customprofiles.xml"))) {
parseFile(exportFolder + QStringLiteral("customprofiles.xml"), true);
if (directory.exists(QStringLiteral("customprofiles.xml"))) {
parseFile(directory.absoluteFilePath(QStringLiteral("customprofiles.xml")), true);
}
focusFirstVisibleItem(selectedProfile);
......
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