ProjectExplorer: Fix scratch buffer creation

Amends 389b1eceb.

Fixes: QTCREATORBUG-28145
Change-Id: I9e0075b1031fbe42d4d48b9dee0a80d85378cf17
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2022-09-06 15:05:06 +02:00
parent c7d3f48508
commit 9e16e694ee

View File

@@ -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;