small pointer check

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-07-12 18:12:31 +03:00
parent 640aaa8c23
commit 9ee68b9268
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -154,7 +154,8 @@ void EnsureMetadataTask::executeTask()
connect(version_task.get(), &Task::finished, [=] {
version_task->deleteLater();
m_current_task = nullptr;
if (m_current_task)
m_current_task.reset();
});
if (m_mods.size() > 1)