forked from qt-creator/qt-creator
Debugger: Fix environment settings
... for "special" starts like Debug->Start Debugging->Start and Debug External Application. Change-Id: I9f9e682f4392efb5328eb8c08bf50dd33901f41d Task-number: QTCREATORBUG-16746 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
@@ -364,6 +364,10 @@ static DebuggerRunControl *doCreate(DebuggerRunParameters rp, RunConfiguration *
|
||||
rp.projectSourceDirectory = project->projectDirectory().toString();
|
||||
rp.projectSourceFiles = project->files(Project::SourceFiles);
|
||||
}
|
||||
} else {
|
||||
// "special" starts like Start and Debug External Application.
|
||||
rp.inferior.environment = Environment::systemEnvironment();
|
||||
rp.inferior.environment.modify(EnvironmentKitInformation::environmentChanges(kit));
|
||||
}
|
||||
|
||||
if (ToolChain *tc = ToolChainKitInformation::toolChain(kit))
|
||||
|
Reference in New Issue
Block a user