all repos — mgba @ 51a6371eefa2fe9ce9b4ff44d91374e2be6c30b0

mGBA Game Boy Advance Emulator

Close LogView if the main window closes
Jeffrey Pfau jeffrey@endrift.com
Tue, 14 Oct 2014 01:58:36 -0700
commit

51a6371eefa2fe9ce9b4ff44d91374e2be6c30b0

parent

78759dc12e9ec92545dfddf082d24e11d00b6f1f

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

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

@@ -32,6 +32,7 @@ connect(m_controller, SIGNAL(postLog(int, const QString&)), m_logView, SLOT(postLog(int, const QString&)));

connect(this, SIGNAL(startDrawing(const uint32_t*, GBAThread*)), m_display, SLOT(startDrawing(const uint32_t*, GBAThread*)), Qt::QueuedConnection); connect(this, SIGNAL(shutdown()), m_display, SLOT(stopDrawing())); connect(this, SIGNAL(shutdown()), m_controller, SLOT(closeGame())); + connect(this, SIGNAL(shutdown()), m_logView, SLOT(hide())); connect(this, SIGNAL(audioBufferSamplesChanged(int)), m_controller, SLOT(setAudioBufferSamples(int))); connect(this, SIGNAL(fpsTargetChanged(float)), m_controller, SLOT(setFPSTarget(float)));