diff --git a/menu_generator/menu.py b/menu_generator/menu.py index 276d76e..5ed8ece 100755 --- a/menu_generator/menu.py +++ b/menu_generator/menu.py @@ -114,7 +114,7 @@ def _process_breadcrums(self, menu_list): can be used as breadcrumbs """ for item in menu_list: - if item['submenu']: + if not item['selected'] and item['submenu']: item['selected'] = self._process_breadcrums(item['submenu']) if item['selected']: return True