Improve Updater dialog

Set a proper parent, and mention in the title that this is about
Qt.

Change-Id: I9f4542267b070c23a7efbe428700a13e8adc9de8
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Kai Koehne
2017-10-11 20:02:52 +02:00
parent 89ac5b5603
commit 814f699214

View File

@@ -164,8 +164,8 @@ void UpdateInfoPlugin::checkForUpdatesFinished()
if (!document.isNull() && document.firstChildElement().hasChildNodes()) {
emit newUpdatesAvailable(true);
if (QMessageBox::question(0, tr("Updater"),
tr("New updates are available. Do you want to start update?"))
if (QMessageBox::question(ICore::dialogParent(), tr("Qt Updater"),
tr("New updates are available. Do you want to start the update?"))
== QMessageBox::Yes)
startUpdater();
} else {