diff --git a/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp b/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp
index ee2149309..a3886c047 100644
--- a/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp
+++ b/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp
@@ -134,7 +134,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas
// If there's no need to update, tell them that. However we still allow them to run the
// downloader themselves if there's a compatible build
QMessageBox::information(
- this, tr("No Update Available"),
+ window(), tr("No Update Available"),
tr("Cockatrice is up to date!") + "
" +
tr("You are already running the latest version available in the chosen release channel.") + "
" +
"" + tr("Current version") + QString(": %1
").arg(VERSION_STRING) + "" +
@@ -147,7 +147,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas
if (isCompatible) {
int reply;
reply = QMessageBox::question(
- this, tr("Update Available"),
+ window(), tr("Update Available"),
tr("A new version of Cockatrice is available!") + "
" + "" + tr("New version") +
QString(": %1
").arg(release->getName()) + "" + tr("Released") +
QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") +
@@ -159,7 +159,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas
}
} else {
QMessageBox::information(
- this, tr("Update Available"),
+ window(), tr("Update Available"),
tr("A new version of Cockatrice is available!") + "
" + "" + tr("New version") +
QString(": %1
").arg(release->getName()) + "" + tr("Released") +
QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") +