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:
commit
38b189e13d
|
@ -925,7 +925,8 @@ bool MainWindow::RequestStop()
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool rendered_widget_was_active =
|
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) ?
|
QWidget* confirm_parent = (!m_rendering_to_main && rendered_widget_was_active) ?
|
||||||
m_render_widget :
|
m_render_widget :
|
||||||
static_cast<QWidget*>(this);
|
static_cast<QWidget*>(this);
|
||||||
|
|
Loading…
Reference in New Issue