diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-04-22 13:01:18 +0200 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2018-04-22 13:01:18 +0200 |
| commit | 519fa7529f66ea83db5dce9a551ef3dd6de5c95f (patch) | |
| tree | dbd939f566bd72ceb59761624a5b157b59b3b34b /Source/Core | |
| parent | 50e80d66db3bd479a0d6ce7768e3919b3bfcd032 (diff) | |
Qt/RenderWidget: Fix the render widget showing up when it shouldn't
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt2/RenderWidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/RenderWidget.cpp b/Source/Core/DolphinQt2/RenderWidget.cpp index b1c1529baa..c2bbec0d4b 100644 --- a/Source/Core/DolphinQt2/RenderWidget.cpp +++ b/Source/Core/DolphinQt2/RenderWidget.cpp @@ -75,10 +75,13 @@ void RenderWidget::OnHideCursorChanged() void RenderWidget::OnKeepOnTopChanged(bool top) { + const bool was_visible = isVisible(); + setWindowFlags(top ? windowFlags() | Qt::WindowStaysOnTopHint : windowFlags() & ~Qt::WindowStaysOnTopHint); - show(); + if (was_visible) + show(); } void RenderWidget::HandleCursorTimer() |
