if index == 0: return # No previous sibling found
# Remove highlight, update testWin
- if g.testWin.highLight:
+ if g.testWin and g.testWin.highLight:
g.testWin.highLight.Remove()
tree.needUpdate = True
if not next: return
# Remove highlight, update testWin
- if g.testWin.highLight:
+ if g.testWin and g.testWin.highLight:
g.testWin.highLight.Remove()
tree.needUpdate = True
if not self.ItemsAreCompatible(tree.GetPyData(pparent).treeObject(), tree.GetPyData(selected).treeObject()): return
# Remove highlight, update testWin
- if g.testWin.highLight:
+ if g.testWin and g.testWin.highLight:
g.testWin.highLight.Remove()
tree.needUpdate = True
if not self.ItemsAreCompatible(parent, tree.GetPyData(selected).treeObject()): return
# Remove highlight, update testWin
- if g.testWin.highLight:
+ if g.testWin and g.testWin.highLight:
g.testWin.highLight.Remove()
tree.needUpdate = True
tree.HighLight(tree.pendingHighLight)
except:
# Remove highlight if any problem
- if g.testWin.highLight:
+ if g.testWin and g.testWin.highLight:
g.testWin.highLight.Remove()
tree.pendingHighLight = None
raise