From 9e16e694eeeb358010a64997e6d4ae2c44f66f54 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 6 Sep 2022 15:05:06 +0200 Subject: [PATCH] ProjectExplorer: Fix scratch buffer creation Amends 389b1eceb. Fixes: QTCREATORBUG-28145 Change-Id: I9e0075b1031fbe42d4d48b9dee0a80d85378cf17 Reviewed-by: Orgad Shaneh --- .../projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp index 9abd8e78ce5..9ac38685930 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp @@ -155,10 +155,10 @@ Core::GeneratedFiles JsonWizardFileGenerator::fileList(Utils::MacroExpander *exp File file = f; file.keepExisting = file.source.isEmpty(); - file.target = projectDir / expander->expand(file.target.toString()); + file.target = projectDir.resolvePath(expander->expand(file.target)); file.source = file.keepExisting ? file.target - : wizardDir / expander->expand(file.source.toString()); + : wizardDir.resolvePath(expander->expand(file.source)); file.isBinary = JsonWizard::boolFromVariant(file.isBinary, expander); return file;