This commit is contained in:
parent
5491b40e28
commit
fab67a8a8d
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue