fix: rarely crash after install finished

in DownloadItem::slotAsyncInstall, QProcess should not be deleteLater
since it is not pointer

Log: fix rarely crash; move installExtraArg set before download started
This commit is contained in:
2025-06-07 13:39:55 +08:00
parent 1c43f11645
commit bc7e6bdb95
4 changed files with 28 additions and 21 deletions

View File

@@ -252,8 +252,5 @@ void DownloadItem::slotAsyncInstall(int t)
ui->widget_spinner->hide();
DownloadItem::isInstall = false;
installer.deleteLater();
isInstall.deleteLater();
emit finished(error == 0 && !haveError && !notRoot);
}