forked from qt-creator/qt-creator
ProjectExplorer: Fix crash when no configuration is set
Amends 02d7e59a2e
Change-Id: I5deb955e6fd9a0257e9aabf0edb19ed6f2cd3fde
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1586,8 +1586,13 @@ void SimpleTargetRunnerPrivate::start()
|
||||
m_stopRequested = false;
|
||||
|
||||
QVariantHash extraData = m_extraData;
|
||||
if (q->runControl() && q->runControl()->target()
|
||||
&& q->runControl()->target()->activeRunConfiguration()) {
|
||||
extraData[TERMINAL_SHELL_NAME]
|
||||
= q->runControl()->target()->activeRunConfiguration()->displayName();
|
||||
} else {
|
||||
extraData[TERMINAL_SHELL_NAME] = m_command.executable().fileName();
|
||||
}
|
||||
|
||||
m_process.setCommand(cmdLine);
|
||||
m_process.setEnvironment(env);
|
||||
|
Reference in New Issue
Block a user