forked from qt-creator/qt-creator
ProjectExplorer: Fix crash when setting up run control
Amends 215b284666.
Change-Id: I2d820113153fc1c3326de00f38a5d14d71a501c9
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -836,11 +836,13 @@ void RunControl::setupFormatter(OutputFormatter *formatter) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
formatter->setLineParsers(parsers);
|
formatter->setLineParsers(parsers);
|
||||||
|
if (project()) {
|
||||||
Utils::FileInProjectFinder fileFinder;
|
Utils::FileInProjectFinder fileFinder;
|
||||||
fileFinder.setProjectDirectory(project()->projectDirectory());
|
fileFinder.setProjectDirectory(project()->projectDirectory());
|
||||||
fileFinder.setProjectFiles(project()->files(Project::AllFiles));
|
fileFinder.setProjectFiles(project()->files(Project::AllFiles));
|
||||||
formatter->setFileFinder(fileFinder);
|
formatter->setFileFinder(fileFinder);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Utils::Id RunControl::runMode() const
|
Utils::Id RunControl::runMode() const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user