From 09530d6dcc0fdbdf27d04c63149eb285e122d9dc Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 6 Aug 2019 14:46:37 +0200 Subject: ProjectExplorer: Use RAII pattern for parsing start/stop signalling Change-Id: I13de537140f265db3e3d0ab1cd924d6897cd90c8 Reviewed-by: Christian Kandeler --- src/plugins/python/pythonplugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/python/pythonplugin.cpp') diff --git a/src/plugins/python/pythonplugin.cpp b/src/plugins/python/pythonplugin.cpp index 657e6269bc..0aae69d905 100644 --- a/src/plugins/python/pythonplugin.cpp +++ b/src/plugins/python/pythonplugin.cpp @@ -634,7 +634,7 @@ private: void PythonProject::refresh(Target *target) { - emitParsingStarted(); + ParseGuard guard = guardParsingRun(); parseProject(); const QDir baseDir(projectDirectory().toString()); @@ -661,7 +661,7 @@ void PythonProject::refresh(Target *target) if (target) target->setApplicationTargets(appTargets); - emitParsingFinished(true); + guard.markAsSuccess(); } /** -- cgit v1.2.1