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:
commit
b18868862e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue