aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2022-08-23 12:25:55 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2022-08-23 10:35:10 +0000
commit6a3933c87aad49c17c3dfb35edda0018863998ca (patch)
tree06151c6d80a3d50c60d5083c793def6e7d00eac4
parent4bfdf9fc46c490d955bd2c4ea8ad1f2715824e23 (diff)
StudioWelcome: Fix QTC_ASSERT
Deleting QtcProcess instance directly from one of its signal handlers will lead to crash! I cannot confirm this crash actually happened, but we should play save and delete the archive from the event loop. Change-Id: Ie27291c9ac8b300478ed8396d25a76b343f238be Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r--src/plugins/studiowelcome/examplecheckout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/studiowelcome/examplecheckout.cpp b/src/plugins/studiowelcome/examplecheckout.cpp
index 9131009f56..3263995af8 100644
--- a/src/plugins/studiowelcome/examplecheckout.cpp
+++ b/src/plugins/studiowelcome/examplecheckout.cpp
@@ -424,7 +424,7 @@ void FileExtractor::extract()
});
QObject::connect(archive, &Utils::Archive::finished, this, [this, archive](bool ret) {
- delete archive;
+ archive->deleteLater();
m_finished = ret;
m_timer.stop();