This commit is contained in:
yangjiaxuan 2022-07-20 19:28:06 +08:00
parent 5491b40e28
commit fab67a8a8d
1 changed files with 4 additions and 3 deletions

View File

@ -118,9 +118,10 @@ void Dialog_upgrade::on_listWidget_itemDoubleClicked(QListWidgetItem *item)
QFile f(savePath);
if(!f.exists() || md5 != md5_2)
{
Dialog_updateProgress *dlg = new Dialog_updateProgress(m_versionDll, url, savePath);
dlg->exec();
connect(dlg, SIGNAL(upgrade(QString)), this, SLOT(on_upgrade(QString)), Qt::QueuedConnection);
Dialog_updateProgress dlg(m_versionDll, url, savePath);
connect(&dlg, SIGNAL(upgrade(QString)), this, SLOT(on_upgrade(QString)), Qt::QueuedConnection);
dlg.exec();
disconnect(&dlg, SIGNAL(upgrade(QString)), this, SLOT(on_upgrade(QString)));
}
else
{