all repos — mgba @ 21f9c0107a1daef41d8257a7939e8f47f2af1ef5

mGBA Game Boy Advance Emulator

Qt: Close GDB window when shutting down a game
Jeffrey Pfau jeffrey@endrift.com
Mon, 19 Jan 2015 02:39:43 -0800
commit

21f9c0107a1daef41d8257a7939e8f47f2af1ef5

parent

973f1a64a0f6fd8cc9f6eaa0515c6dd69257720e

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -276,6 +276,8 @@ if (!m_gdbController) {

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