From c6ccf40aa8d8210a46171e82b1611956c93508cf Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 1 May 2012 17:21:09 -0400 Subject: [PATCH] MainWindow: work when deselecting things --- Alacarte/MainWindow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py index 7302833..42fa509 100644 --- a/Alacarte/MainWindow.py +++ b/Alacarte/MainWindow.py @@ -374,6 +374,8 @@ class MainWindow(object): def on_menu_tree_cursor_changed(self, treeview): menus, iter = treeview.get_selection().get_selected() + if iter is None: + return menu_path = menus.get_path(iter) item_tree = self.tree.get_object('item_tree') item_tree.get_selection().unselect_all() -- 2.11.4.GIT