[alacarte] MenuEditor: Fix directory entry visibility



commit 210669f642ea8f454f6ffc7a02ec179c7eeb5eac
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed May 9 15:47:50 2012 -0300

    MenuEditor: Fix directory entry visibility

 Alacarte/MenuEditor.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Alacarte/MenuEditor.py b/Alacarte/MenuEditor.py
index 1d3c592..cb89cfa 100644
--- a/Alacarte/MenuEditor.py
+++ b/Alacarte/MenuEditor.py
@@ -239,7 +239,7 @@ class MenuEditor(object):
             menu_xml = self.__getXmlMenu(self.__getPath(item), dom.documentElement, dom)
             for node in self.__getXmlNodesByName(['Deleted', 'NotDeleted'], menu_xml):
                 node.parentNode.removeChild(node)
-            self.__writeMenu(item, NoDisplay=visible)
+            self.__writeMenu(item, NoDisplay=not visible)
             self.__addXmlTextElement(menu_xml, 'DirectoryDir', util.getUserDirectoryPath(), dom)
         self.save()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]