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:
parent
eacb9ccd80
commit
6bacdc0af3
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue