forked from qt-creator/qt-creator
ProjectExplorer: Use RAII pattern for parsing start/stop signalling
Change-Id: I13de537140f265db3e3d0ab1cd924d6897cd90c8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -409,7 +409,7 @@ FilePath GenericProject::findCommonSourceRoot()
|
||||
|
||||
void GenericProject::refresh(RefreshOptions options)
|
||||
{
|
||||
emitParsingStarted();
|
||||
ParseGuard guard = guardParsingRun();
|
||||
parseProject(options);
|
||||
|
||||
if (options & Files) {
|
||||
@@ -442,7 +442,7 @@ void GenericProject::refresh(RefreshOptions options)
|
||||
|
||||
refreshCppCodeModel();
|
||||
updateDeploymentData();
|
||||
emitParsingFinished(true);
|
||||
guard.markAsSuccess();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user