From 054e05951b79d9927ce97cde870faf2257362d96 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 22 Sep 2021 11:33:25 +0200 Subject: [PATCH] Partially revert "Core: FilePath-ify DocumentManager" This reverts a hunk from commit 1167f0fac76cab08c918c7e992b78a4a4a8328fa that was meant to be part of another commit. Change-Id: Ieee7b8e659e139497f5efc8b611469f82ae0fef5 Reviewed-by: Cristian Adam --- .../projectexplorer/jsonwizard/jsonwizardfactory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp index 98c931f3f75..58257a2527b 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp @@ -605,9 +605,9 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const QDir &baseDir, setDescriptionImage(strVal); } - const FilePath detailsPage = baseDir.resolvePath(QString("detailsPage.qml")); - if (detailsPage.exists()) - setDetailsPageQmlPath(detailsPage.toString()); + strVal = baseDir.absoluteFilePath("detailsPage.qml"); + if (QFileInfo::exists(strVal)) + setDetailsPageQmlPath(strVal); setRequiredFeatures(Utils::Id::fromStringList(data.value(QLatin1String(REQUIRED_FEATURES_KEY)).toStringList())); m_preferredFeatures = Utils::Id::fromStringList(data.value(QLatin1String(SUGGESTED_FEATURES_KEY)).toStringList());