Skip to content

Commit

Permalink
Merge pull request #13039 from Dentomologist/mainwindow_fix_hidden_co…
Browse files Browse the repository at this point in the history
…nfirm_on_stop_dialog

MainWindow: Prevent Confirm On Stop dialog from being hidden by the Render window
  • Loading branch information
Tilka authored Aug 30, 2024
2 parents 8b7268d + 9bdf862 commit 38b189e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/DolphinQt/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 38b189e

Please sign in to comment.