summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonplugin.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-08-06 14:46:37 +0200
committerTobias Hunger <tobias.hunger@qt.io>2019-08-09 12:45:29 +0000
commit09530d6dcc0fdbdf27d04c63149eb285e122d9dc (patch)
tree5f33e1bd1d04fb258251f74057f24ab96fe6fdd7 /src/plugins/python/pythonplugin.cpp
parent8868989d5c72cd57e5068481198ffa0af4cb4bb0 (diff)
downloadqt-creator-09530d6dcc0fdbdf27d04c63149eb285e122d9dc.tar.gz
ProjectExplorer: Use RAII pattern for parsing start/stop signalling
Change-Id: I13de537140f265db3e3d0ab1cd924d6897cd90c8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/python/pythonplugin.cpp')
-rw-r--r--src/plugins/python/pythonplugin.cpp4
1 files changed, 2 insertions, 2 deletions
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();
}
/**