diff --git a/pcsx2/gui/AppMain.cpp b/pcsx2/gui/AppMain.cpp index 29886355df..3fe434d438 100644 --- a/pcsx2/gui/AppMain.cpp +++ b/pcsx2/gui/AppMain.cpp @@ -912,7 +912,6 @@ void Pcsx2App::OnGsFrameClosed( wxWindowID id ) if( (m_id_GsFrame == wxID_ANY) || (m_id_GsFrame != id) ) return; CoreThread.Suspend(); - m_id_GsFrame = wxID_ANY; if( !m_UseGUI ) { diff --git a/pcsx2/gui/FrameForGS.cpp b/pcsx2/gui/FrameForGS.cpp index 70ab14abe4..6d74ef8ce1 100644 --- a/pcsx2/gui/FrameForGS.cpp +++ b/pcsx2/gui/FrameForGS.cpp @@ -410,7 +410,7 @@ GSFrame::~GSFrame() throw() void GSFrame::OnCloseWindow(wxCloseEvent& evt) { sApp.OnGsFrameClosed( GetId() ); - evt.Skip(); // and close it. + Hide(); // and don't close it. } bool GSFrame::ShowFullScreen(bool show, long style)