X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e98e70622703a1d12e47ad74d1264c421597a667..68fc5c8025e38b9d827383fbfe7ce509ae331c1f:/wxPython/wx/tools/XRCed/tree.py?ds=sidebyside diff --git a/wxPython/wx/tools/XRCed/tree.py b/wxPython/wx/tools/XRCed/tree.py index 3fb095bcec..26e8b91a8a 100644 --- a/wxPython/wx/tools/XRCed/tree.py +++ b/wxPython/wx/tools/XRCed/tree.py @@ -692,7 +692,8 @@ class XML_Tree(wx.TreeCtrl): #oldItem = evt.GetOldItem() status = '' oldItem = self.selection - if oldItem: + # use GetItemParent as a way to determine if the itemId is still valid + if oldItem and self.GetItemParent(oldItem): xxx = self.GetPyData(oldItem) # If some data was modified, apply changes if g.panel.IsModified():