equal
deleted
inserted
replaced
395 |
395 |
396 # Get item data to get item type |
396 # Get item data to get item type |
397 item_pydata = self.Tree.GetPyData(item) |
397 item_pydata = self.Tree.GetPyData(item) |
398 |
398 |
399 # Item is a block category |
399 # Item is a block category |
400 if item_pydata["type"] == CATEGORY: |
400 if (item == root) or item_pydata["type"] == CATEGORY: |
401 |
401 |
402 # Get category first or last child according to search mode |
402 # Get category first or last child according to search mode |
403 # defined |
403 # defined |
404 child = (self.Tree.GetLastChild(item) |
404 child = (self.Tree.GetLastChild(item) |
405 if mode == "previous" |
405 if mode == "previous" |