diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2015-11-11 14:53:37 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2015-11-11 14:53:37 -0800 |
commit | 4bbe46efa323a05567ed6ec0ddfb03efe737dfaa (patch) | |
tree | 808df4b634468f35ba48365f30436bd972812ab2 /grc/gui/BlockTreeWindow.py | |
parent | b76dc11f2bccf2c53a880cf7e29d5e74a40b2ded (diff) |
grc: fix #858 category string splitting
Diffstat (limited to 'grc/gui/BlockTreeWindow.py')
-rw-r--r-- | grc/gui/BlockTreeWindow.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py index 631272b03c..1cc4d9018b 100644 --- a/grc/gui/BlockTreeWindow.py +++ b/grc/gui/BlockTreeWindow.py @@ -125,7 +125,7 @@ class BlockTreeWindow(gtk.VBox): if treestore is None: treestore = self.treestore if categories is None: categories = self._categories - if isinstance(category, str): category = category.split('/') + if isinstance(category, (str, unicode)): category = category.split('/') category = tuple(filter(lambda x: x, category)) #tuple is hashable #add category and all sub categories for i, cat_name in enumerate(category): |