X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/23f681ec4840b44e265e6f71beef5a242306220b..236a9de39afa090fdee3cf91cb5364ceca69e3f8:/src/generic/logg.cpp diff --git a/src/generic/logg.cpp b/src/generic/logg.cpp index 16f6148ca4..95cdee68f3 100644 --- a/src/generic/logg.cpp +++ b/src/generic/logg.cpp @@ -385,11 +385,12 @@ public: wxTextCtrl *TextCtrl() const { return m_pTextCtrl; } private: + // use standard ids for our commands! enum { - Menu_Close = 100, - Menu_Save, - Menu_Clear + Menu_Close = wxID_CLOSE, + Menu_Save = wxID_SAVE, + Menu_Clear = wxID_CLEAR }; // instead of closing just hide the window to be able to Show() it later @@ -728,7 +729,7 @@ void wxLogDialog::OnListSelect(wxListEvent& event) // we can't just disable the control because this looks ugly under Windows // (wrong bg colour, no scrolling...), but we still want to disable // selecting items - it makes no sense here - m_listctrl->SetItemState(event.GetItem(), 0, wxLIST_STATE_SELECTED); + m_listctrl->SetItemState(event.GetIndex(), 0, wxLIST_STATE_SELECTED); } void wxLogDialog::OnOk(wxCommandEvent& WXUNUSED(event))