Merge pull request #13039 from Dentomologist/mainwindow_fix_hidden_confirm_on_stop_dialog

MainWindow: Prevent Confirm On Stop dialog from being hidden by the Render window
This commit is contained in:
Tilka 2024-08-31 00:08:45 +01:00 committed by GitHub
commit 38b189e13d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -925,7 +925,8 @@ bool MainWindow::RequestStop()
}
const bool rendered_widget_was_active =
m_render_widget->isActiveWindow() && !m_render_widget->isFullScreen();
Settings::Instance().IsKeepWindowOnTopEnabled() ||
(m_render_widget->isActiveWindow() && !m_render_widget->isFullScreen());
QWidget* confirm_parent = (!m_rendering_to_main && rendered_widget_was_active) ?
m_render_widget :
static_cast<QWidget*>(this);