diff options
| author | Christian Kandeler <christian.kandeler@qt.io> | 2025-07-18 14:24:40 +0200 |
|---|---|---|
| committer | Christian Kandeler <christian.kandeler@qt.io> | 2025-07-18 13:57:12 +0000 |
| commit | 9ae46d069c6137c318b370a9adbcf67038353b9f (patch) | |
| tree | 1179b0755f296d598826123bf857213d4cb1714c /src/plugins/python/pythonbuildsystem.cpp | |
| parent | 75eaad08cf3e8dce0590faa50dc6790f290d6c20 (diff) | |
PE: Add convenience function for clearing and removing a Task
Change-Id: I819cb6ae31bc6f83fffeb9f406108cc4a7b17025
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/python/pythonbuildsystem.cpp')
| -rw-r--r-- | src/plugins/python/pythonbuildsystem.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/python/pythonbuildsystem.cpp b/src/plugins/python/pythonbuildsystem.cpp index 03702c6bdfd..b400fa7dc70 100644 --- a/src/plugins/python/pythonbuildsystem.cpp +++ b/src/plugins/python/pythonbuildsystem.cpp @@ -221,10 +221,7 @@ void PythonBuildSystem::updateQmlCodeModelInfo(QmlCodeModelInfo &projectInfo) */ bool PythonBuildSystem::save() { - if (!m_saveError.isNull()) { - TaskHub::removeTask(m_saveError); - m_saveError.clear(); - } + TaskHub::clearAndRemoveTask(m_saveError); const auto setError = [this](const QString &reason) { m_saveError = OtherTask( Task::DisruptingError, |
