aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-07-12 19:55:11 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-07-12 19:55:11 +0300
commit25f7cf23d3572e444617c347ade71fffddd8af8b (patch)
tree2852e70c6964ff5c5a5d97a7fffabf9ecdd50d07 /launcher/modplatform
parent9ee68b926829495b4b87e7044bd31352ef6a6a84 (diff)
downloadPrismLauncher-25f7cf23d3572e444617c347ade71fffddd8af8b.tar.gz
PrismLauncher-25f7cf23d3572e444617c347ade71fffddd8af8b.tar.bz2
PrismLauncher-25f7cf23d3572e444617c347ade71fffddd8af8b.zip
the other place
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform')
-rw-r--r--launcher/modplatform/EnsureMetadataTask.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/modplatform/EnsureMetadataTask.cpp b/launcher/modplatform/EnsureMetadataTask.cpp
index d7649700..c3eadd06 100644
--- a/launcher/modplatform/EnsureMetadataTask.cpp
+++ b/launcher/modplatform/EnsureMetadataTask.cpp
@@ -145,7 +145,8 @@ void EnsureMetadataTask::executeTask()
connect(project_task.get(), &Task::finished, this, [=] {
invalidade_leftover();
project_task->deleteLater();
- m_current_task = nullptr;
+ if (m_current_task)
+ m_current_task.reset();
});
m_current_task = project_task;