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,10 +836,12 @@ void RunControl::setupFormatter(OutputFormatter *formatter) const
|
||||
}
|
||||
}
|
||||
formatter->setLineParsers(parsers);
|
||||
Utils::FileInProjectFinder fileFinder;
|
||||
fileFinder.setProjectDirectory(project()->projectDirectory());
|
||||
fileFinder.setProjectFiles(project()->files(Project::AllFiles));
|
||||
formatter->setFileFinder(fileFinder);
|
||||
if (project()) {
|
||||
Utils::FileInProjectFinder fileFinder;
|
||||
fileFinder.setProjectDirectory(project()->projectDirectory());
|
||||
fileFinder.setProjectFiles(project()->files(Project::AllFiles));
|
||||
formatter->setFileFinder(fileFinder);
|
||||
}
|
||||
}
|
||||
|
||||
Utils::Id RunControl::runMode() const
|
||||
|
||||
Reference in New Issue
Block a user