summaryrefslogtreecommitdiff
path: root/src/plugins/autotoolsprojectmanager/autogenstep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/autotoolsprojectmanager/autogenstep.cpp')
-rw-r--r--src/plugins/autotoolsprojectmanager/autogenstep.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autogenstep.cpp b/src/plugins/autotoolsprojectmanager/autogenstep.cpp
index 77f9193b41..950982ee15 100644
--- a/src/plugins/autotoolsprojectmanager/autogenstep.cpp
+++ b/src/plugins/autotoolsprojectmanager/autogenstep.cpp
@@ -77,9 +77,8 @@ bool AutogenStep::init()
ProcessParameters *pp = processParameters();
pp->setMacroExpander(bc->macroExpander());
pp->setEnvironment(bc->environment());
- const QString projectDir(bc->target()->project()->projectDirectory().toString());
- pp->setWorkingDirectory(projectDir);
- pp->setCommand("./autogen.sh");
+ pp->setWorkingDirectory(bc->target()->project()->projectDirectory());
+ pp->setCommand(Utils::FileName::fromString("./autogen.sh"));
pp->setArguments(m_additionalArgumentsAspect->value());
pp->resolveAll();
@@ -122,9 +121,8 @@ BuildStepConfigWidget *AutogenStep::createConfigWidget()
ProcessParameters param;
param.setMacroExpander(bc->macroExpander());
param.setEnvironment(bc->environment());
- const QString projectDir(bc->target()->project()->projectDirectory().toString());
- param.setWorkingDirectory(projectDir);
- param.setCommand("./autogen.sh");
+ param.setWorkingDirectory(bc->target()->project()->projectDirectory());
+ param.setCommand(Utils::FileName::fromString("./autogen.sh"));
param.setArguments(m_additionalArgumentsAspect->value());
widget->setSummaryText(param.summary(displayName()));