mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix screen freezing on macOS after closing save state window (fixes #2885)
This commit is contained in:
parent
0227d2db39
commit
e1a5329f30
1
CHANGES
1
CHANGES
|
@ -20,6 +20,7 @@ Other fixes:
|
|||
- mGUI: Fix cases where an older save state screenshot would be shown (fixes mgba.io/i/2183)
|
||||
- Qt: Re-enable sync for multiplayer windows that aren't connected (fixes mgba.io/i/2974)
|
||||
- Qt: Fix mute settings not being loaded on setting screen (fixes mgba.io/i/2990)
|
||||
- Qt: Fix screen freezing on macOS after closing save state window (fixes mgba.io/i/2885)
|
||||
- Vita: Fix camera setting not appearing (fixes mgba.io/i/3012)
|
||||
Misc:
|
||||
- mGUI: Persist fast forwarding after closing menu (fixes mgba.io/i/2414)
|
||||
|
|
|
@ -1910,8 +1910,15 @@ void Window::setupOptions() {
|
|||
}
|
||||
|
||||
void Window::attachWidget(QWidget* widget) {
|
||||
// Fix https://mgba.io/i/2885 -- seems like a Qt bug
|
||||
if (m_display && widget != m_display.get()) {
|
||||
m_display->hide();
|
||||
}
|
||||
takeCentralWidget();
|
||||
setCentralWidget(widget);
|
||||
if (m_display && widget == m_display.get()) {
|
||||
m_display->show();
|
||||
}
|
||||
}
|
||||
|
||||
void Window::detachWidget() {
|
||||
|
|
Loading…
Reference in New Issue