summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonproject.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-10-18 10:05:51 +0200
committerDavid Schulz <david.schulz@qt.io>2022-10-20 12:46:37 +0000
commitc81a5c06447fe99bd6a40440b40679f37144824e (patch)
tree7b428cf228777110776acf63eb93469bab3788f4 /src/plugins/python/pythonproject.cpp
parent4c936be3a92dd826a5370b4da8c02572aa0118f3 (diff)
downloadqt-creator-c81a5c06447fe99bd6a40440b40679f37144824e.tar.gz
Python: trigger parse in build system creator
Otherwise we do not have any app targets for the python run configuration after a kit setup. Change-Id: Ib7648a72280a1d68246c11139775a23366fda286 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonproject.cpp')
-rw-r--r--src/plugins/python/pythonproject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonproject.cpp b/src/plugins/python/pythonproject.cpp
index 70528b0c99..a255c5ab5c 100644
--- a/src/plugins/python/pythonproject.cpp
+++ b/src/plugins/python/pythonproject.cpp
@@ -476,7 +476,7 @@ PythonBuildSystem::PythonBuildSystem(Target *target)
: BuildSystem(target)
{
connect(target->project(), &Project::projectFileIsDirty, this, [this] { triggerParsing(); });
- QTimer::singleShot(0, this, &PythonBuildSystem::triggerParsing);
+ triggerParsing();
}
bool PythonBuildSystem::supportsAction(Node *context, ProjectAction action, const Node *node) const