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:
dt
2009-07-03 16:46:01 +02:00
parent 5a8b61b2ee
commit e524f52477
11 changed files with 40 additions and 22 deletions

View File

@@ -239,7 +239,7 @@ QmlMakeStep *QmlProject::makeStep() const
return 0;
}
void QmlProject::restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader &reader)
bool QmlProject::restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader &reader)
{
Project::restoreSettingsImpl(reader);
@@ -254,6 +254,7 @@ void QmlProject::restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader &
}
refresh(Everything);
return true;
}
void QmlProject::saveSettingsImpl(ProjectExplorer::PersistentSettingsWriter &writer)