mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-09 06:03:32 +01:00
DolphinQt: Fix mouse lock checkbox appearing when it shouldn't
See https://bugs.dolphin-emu.org/issues/13232; this was introduced in 7dde0c3c319577fd913e4de72a6113a8998ada49. Apparently, providing a parent for a widget that is not visible makes your new widget visible when the parent is later made visible, in addition to managing the deletion of the widget; the documentation does not specify this (only that if the parent is visible you need to explicitly show it).
This commit is contained in:
parent
aaedc2827d
commit
02cd8b6363
@ -204,6 +204,8 @@ void InterfacePane::CreateInGame()
|
||||
groupbox_layout->addWidget(mouse_groupbox);
|
||||
#ifdef _WIN32
|
||||
groupbox_layout->addWidget(m_checkbox_lock_mouse);
|
||||
#else
|
||||
m_checkbox_lock_mouse->hide();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user