X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8548d99ac2708f19c42fcf8b7bbdf3036548929..6448dc217bb901dadbab90ff98f8f80fcc74e8d4:/src/generic/filectrlg.cpp diff --git a/src/generic/filectrlg.cpp b/src/generic/filectrlg.cpp index f85cf1d342..5427143e01 100644 --- a/src/generic/filectrlg.cpp +++ b/src/generic/filectrlg.cpp @@ -393,9 +393,6 @@ void wxFileData::MakeItem( wxListItem &item ) // wxFileListCtrl //----------------------------------------------------------------------------- -// FIXME: what is this for? It's never read -static bool ignoreChanges = false; - IMPLEMENT_DYNAMIC_CLASS(wxFileListCtrl,wxListCtrl) BEGIN_EVENT_TABLE(wxFileListCtrl,wxListCtrl) @@ -722,10 +719,8 @@ void wxFileListCtrl::GoToParentDir() long id = FindItem( 0, fname ); if (id != wxNOT_FOUND) { - ignoreChanges = true; SetItemState( id, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED ); EnsureVisible( id ); - ignoreChanges = false; } } } @@ -743,9 +738,7 @@ void wxFileListCtrl::GoToDir( const wxString &dir ) m_dirName = dir; UpdateFiles(); - ignoreChanges = true; SetItemState( 0, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED ); - ignoreChanges = false; EnsureVisible( 0 ); } @@ -818,9 +811,7 @@ void wxFileListCtrl::OnListEndLabelEdit( wxListEvent &event ) { fd->SetNewName( new_name, event.GetLabel() ); - ignoreChanges = true; SetItemState( event.GetItem(), wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED ); - ignoreChanges = false; UpdateItem( event.GetItem() ); EnsureVisible( event.GetItem() );