changeset 1501 | d917c209529d |
parent 1235 | 1a30c70fa025 |
child 1528 | d551f2925a86 |
--- a/controls/LibraryPanel.py Fri Apr 22 16:59:47 2016 +0300 +++ b/controls/LibraryPanel.py Fri Apr 22 17:02:18 2016 +0300 @@ -397,7 +397,7 @@ item_pydata = self.Tree.GetPyData(item) # Item is a block category - if item_pydata["type"] == CATEGORY: + if (item == root) or item_pydata["type"] == CATEGORY: # Get category first or last child according to search mode # defined