git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43557
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#oldItem = evt.GetOldItem()
status = ''
oldItem = self.selection
#oldItem = evt.GetOldItem()
status = ''
oldItem = self.selection
+ # 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():
xxx = self.GetPyData(oldItem)
# If some data was modified, apply changes
if g.panel.IsModified():