Qt: Close GDB window when shutting down a game

This commit is contained in:
Jeffrey Pfau 2015-01-19 02:39:43 -08:00
parent 973f1a64a0
commit 21f9c0107a
1 changed files with 2 additions and 0 deletions

View File

@ -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