diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-08-23 12:25:55 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-08-23 10:35:10 +0000 |
commit | 6a3933c87aad49c17c3dfb35edda0018863998ca (patch) | |
tree | 06151c6d80a3d50c60d5083c793def6e7d00eac4 | |
parent | 4bfdf9fc46c490d955bd2c4ea8ad1f2715824e23 (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.cpp | 2 |
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(); |