MainWindow: Maximize error dialog when window is shown
This commit is contained in:
@@ -1666,6 +1666,11 @@ void MainWindow::StopAfterCurrent() {
|
|||||||
|
|
||||||
void MainWindow::showEvent(QShowEvent *e) {
|
void MainWindow::showEvent(QShowEvent *e) {
|
||||||
|
|
||||||
|
if (error_dialog_ && error_dialog_->isVisible() && error_dialog_->isMinimized()) {
|
||||||
|
error_dialog_->raise();
|
||||||
|
error_dialog_->activateWindow();
|
||||||
|
}
|
||||||
|
|
||||||
QMainWindow::showEvent(e);
|
QMainWindow::showEvent(e);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user