Skip to content

Commit

Permalink
MainWindow: Maximize error dialog when window is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Jan 22, 2025
1 parent 02bb875 commit 58fc8c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}
Expand Down

0 comments on commit 58fc8c8

Please sign in to comment.