summaryrefslogtreecommitdiff
path: root/Mozo/MenuEditor.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mozo/MenuEditor.py')
-rw-r--r--Mozo/MenuEditor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mozo/MenuEditor.py b/Mozo/MenuEditor.py
index 80ef2dd..71a76eb 100644
--- a/Mozo/MenuEditor.py
+++ b/Mozo/MenuEditor.py
@@ -180,7 +180,7 @@ class MenuEditor:
def canRevert(self, item):
if item.get_type() == matemenu.TYPE_ENTRY:
- if util.getItemPath(item.get_desktop_file_id()):
+ if util.getItemPath(item.get_desktop_file_id()) is not None:
path = util.getUserItemPath()
if os.path.isfile(os.path.join(path, item.get_desktop_file_id())):
return True
@@ -189,7 +189,7 @@ class MenuEditor:
file_id = os.path.split(item.get_desktop_file_path())[1]
else:
file_id = item.get_menu_id() + '.directory'
- if util.getDirectoryPath(file_id):
+ if util.getDirectoryPath(file_id) is not None:
path = util.getUserDirectoryPath()
if os.path.isfile(os.path.join(path, file_id)):
return True