mirror of https://github.com/mgba-emu/mgba.git
Qt: Close GDB window when shutting down a game
This commit is contained in:
parent
973f1a64a0
commit
21f9c0107a
|
@ -276,6 +276,8 @@ void Window::gdbOpen() {
|
|||
m_gdbController = new GDBController(m_controller, this);
|
||||
}
|
||||
GDBWindow* window = new GDBWindow(m_gdbController);
|
||||
connect(this, SIGNAL(shutdown()), window, SLOT(close()));
|
||||
window->setAttribute(Qt::WA_DeleteOnClose);
|
||||
window->show();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue