don't give an error when editing of the items label is cancelled (patch 1482176)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -700,6 +700,9 @@ void wxGenericDirCtrl::OnBeginEditItem(wxTreeEvent &event)
|
||||
|
||||
void wxGenericDirCtrl::OnEndEditItem(wxTreeEvent &event)
|
||||
{
|
||||
if (event.IsEditCancelled())
|
||||
return;
|
||||
|
||||
if ((event.GetLabel().empty()) ||
|
||||
(event.GetLabel() == _(".")) ||
|
||||
(event.GetLabel() == _("..")) ||
|
||||
|
Reference in New Issue
Block a user