forked from qt-creator/qt-creator
Allow restoreSettings() to fail,
E.g. cmake pops up a wizard then, the running of cmake can fail though. Now you don't end i[ with a empty project then. The error reporting in that case is not yet optimal.
This commit is contained in:
@@ -468,7 +468,7 @@ GenericMakeStep *GenericProject::makeStep() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void GenericProject::restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader &reader)
|
||||
bool GenericProject::restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader &reader)
|
||||
{
|
||||
Project::restoreSettingsImpl(reader);
|
||||
|
||||
@@ -500,6 +500,7 @@ void GenericProject::restoreSettingsImpl(ProjectExplorer::PersistentSettingsRead
|
||||
setIncludePaths(allIncludePaths());
|
||||
|
||||
refresh(Everything);
|
||||
return true;
|
||||
}
|
||||
|
||||
void GenericProject::saveSettingsImpl(ProjectExplorer::PersistentSettingsWriter &writer)
|
||||
|
Reference in New Issue
Block a user