#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():
inf = sys.exc_info()
wx.LogError(traceback.format_exception(inf[0], inf[1], None)[-1])
wx.LogError('Error writing temporary file')
- if debug: raise
memFile.close() # write to wxMemoryFS
xmlFlags = xrc.XRC_NO_SUBCLASSING
# Use translations if encoding is not specified