Merge pull request #6685 from spycrab/qt_fix_rw

Qt/RenderWidget: Fix the render widget showing up when it shouldn't
This commit is contained in:
Tilka 2018-04-22 12:10:24 +01:00 committed by GitHub
commit b18868862e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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()