forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user