#ifndef WX_PRECOMP
#include "wx/hash.h"
#include "wx/intl.h"
+ #include "wx/log.h"
+ #include "wx/utils.h"
+ #include "wx/button.h"
+ #include "wx/icon.h"
+ #include "wx/settings.h"
+ #include "wx/msgdlg.h"
+ #include "wx/cmndata.h"
#endif
#include "wx/module.h"
-#include "wx/utils.h"
-#include "wx/button.h"
#include "wx/layout.h"
-#include "wx/msgdlg.h"
#include "wx/textctrl.h"
#include "wx/textdlg.h"
#include "wx/filefn.h"
-#include "wx/cmndata.h"
#include "wx/gdicmn.h"
#include "wx/imaglist.h"
-#include "wx/icon.h"
-#include "wx/log.h"
#include "wx/sizer.h"
#include "wx/tokenzr.h"
#include "wx/dir.h"
-#include "wx/settings.h"
#include "wx/artprov.h"
#include "wx/mimetype.h"
#include "wx/image.h"
void wxGenericDirCtrl::OnEndEditItem(wxTreeEvent &event)
{
+ if (event.IsEditCancelled())
+ return;
+
if ((event.GetLabel().empty()) ||
(event.GetLabel() == _(".")) ||
(event.GetLabel() == _("..")) ||