From 58fc8c82bbbf9a0ee41c604306510668268979f5 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 22 Jan 2025 17:51:16 +0100 Subject: [PATCH] MainWindow: Maximize error dialog when window is shown --- src/core/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/mainwindow.cpp b/src/core/mainwindow.cpp index 679b7acc3..1cac9fa01 100644 --- a/src/core/mainwindow.cpp +++ b/src/core/mainwindow.cpp @@ -1666,6 +1666,11 @@ void MainWindow::StopAfterCurrent() { void MainWindow::showEvent(QShowEvent *e) { + if (error_dialog_ && error_dialog_->isVisible() && error_dialog_->isMinimized()) { + error_dialog_->raise(); + error_dialog_->activateWindow(); + } + QMainWindow::showEvent(e); }