mirror of https://github.com/mgba-emu/mgba.git
Qt: Clear display before closing window
This commit is contained in:
parent
5e7333e20f
commit
50e699037f
|
@ -613,6 +613,7 @@ void Window::closeEvent(QCloseEvent* event) {
|
|||
m_config->setOption("width", VIDEO_HORIZONTAL_PIXELS * m_savedScale);
|
||||
}
|
||||
saveConfig();
|
||||
m_display.reset();
|
||||
QMainWindow::closeEvent(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue