uncheck logwindow's menuitem when it is closed

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2695 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-03-20 18:46:50 +00:00
parent eacb9ccd80
commit 6bacdc0af3
2 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,7 @@
#define UPDATETIME 100
BEGIN_EVENT_TABLE(CLogWindow, wxDialog)
EVT_CLOSE(CLogWindow::OnClose)
EVT_TEXT_ENTER(IDM_SUBMITCMD, CLogWindow::OnSubmit)
EVT_BUTTON(IDM_CLEARLOG, CLogWindow::OnClear)
EVT_BUTTON(IDM_TOGGLEALL, CLogWindow::OnToggleAll)
@ -129,6 +130,12 @@ CLogWindow::~CLogWindow()
SaveSettings();
}
void CLogWindow::OnClose(wxCloseEvent& event)
{
wxGetApp().GetCFrame()->ToggleLogWindow(false);
event.Skip();
}
void CLogWindow::SaveSettings()
{
IniFile ini;

View File

@ -66,6 +66,7 @@ private:
DECLARE_EVENT_TABLE()
void CreateGUIControls();
void OnClose(wxCloseEvent& event);
void OnSubmit(wxCommandEvent& event);
void OnOptionsCheck(wxCommandEvent& event);
void OnLogCheck(wxCommandEvent& event);