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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user