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
feb7b5a116
commit
16c777cdd9
1
CHANGES
1
CHANGES
|
@ -35,6 +35,7 @@ Other fixes:
|
||||||
- Qt: Fix savestate preview sizes with different scales (fixes mgba.io/i/2560)
|
- Qt: Fix savestate preview sizes with different scales (fixes mgba.io/i/2560)
|
||||||
- Qt: Re-enable sync for multiplayer windows that aren't connected (fixes mgba.io/i/2974)
|
- 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 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)
|
- Vita: Fix camera setting not appearing (fixes mgba.io/i/3012)
|
||||||
Misc:
|
Misc:
|
||||||
- Core: Handle relative paths for saves, screenshots, etc consistently (fixes mgba.io/i/2826)
|
- Core: Handle relative paths for saves, screenshots, etc consistently (fixes mgba.io/i/2826)
|
||||||
|
|
|
@ -1931,8 +1931,15 @@ void Window::setupOptions() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::attachWidget(QWidget* widget) {
|
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();
|
takeCentralWidget();
|
||||||
setCentralWidget(widget);
|
setCentralWidget(widget);
|
||||||
|
if (m_display && widget == m_display.get()) {
|
||||||
|
m_display->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::detachWidget() {
|
void Window::detachWidget() {
|
||||||
|
|
Loading…
Reference in New Issue