Check for updates dialog now always on top.
The check for downloads dialogs were started asynchonously. This was the reason for the dialog ending up under other windows and behaving strangely since other windows will steal focus as soon as the dialog lets go of it.
This commit is contained in:
@@ -222,7 +222,7 @@ void MainWindow::checkForUpdates(bool ignoreSettings, QString & fwId)
|
|||||||
|
|
||||||
if(ignoreSettings) {
|
if(ignoreSettings) {
|
||||||
downloadDialog_forWait = new downloadDialog(this, tr("Checking for updates"));
|
downloadDialog_forWait = new downloadDialog(this, tr("Checking for updates"));
|
||||||
downloadDialog_forWait->show();
|
downloadDialog_forWait->exec();
|
||||||
} else {
|
} else {
|
||||||
downloadDialog_forWait = NULL; // TODO needed?
|
downloadDialog_forWait = NULL; // TODO needed?
|
||||||
}
|
}
|
||||||
@@ -272,7 +272,7 @@ void MainWindow::checkForUpdateFinished(QNetworkReply * reply)
|
|||||||
downloadDialog * dd = new downloadDialog(this, QString(OPENTX_COMPANION_DOWNLOADS C9X_INSTALLER).arg(version), fileName);
|
downloadDialog * dd = new downloadDialog(this, QString(OPENTX_COMPANION_DOWNLOADS C9X_INSTALLER).arg(version), fileName);
|
||||||
installer_fileName = fileName;
|
installer_fileName = fileName;
|
||||||
connect(dd, SIGNAL(accepted()), this, SLOT(updateDownloaded()));
|
connect(dd, SIGNAL(accepted()), this, SLOT(updateDownloaded()));
|
||||||
dd->show();
|
dd->exec();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user