Don't mark "." and ".." for translation when they are used as a check that the user didn't enter "current
directory" or "parent directory" as a new directory name to use... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -698,8 +698,8 @@ void wxGenericDirCtrl::OnEndEditItem(wxTreeEvent &event)
|
||||
return;
|
||||
|
||||
if ((event.GetLabel().empty()) ||
|
||||
(event.GetLabel() == _(".")) ||
|
||||
(event.GetLabel() == _("..")) ||
|
||||
(event.GetLabel() == wxT(".")) ||
|
||||
(event.GetLabel() == wxT("..")) ||
|
||||
(event.GetLabel().Find(wxT('/')) != wxNOT_FOUND) ||
|
||||
(event.GetLabel().Find(wxT('\\')) != wxNOT_FOUND) ||
|
||||
(event.GetLabel().Find(wxT('|')) != wxNOT_FOUND))
|
||||
|
Reference in New Issue
Block a user