Blame SOURCES/commit-e8f3c73

5b2f0d
commit e8f3c734dab2958740b524b19f3c2d20206b6118
5b2f0d
Author: Jasper St. Pierre <jstpierre@mecheye.net>
5b2f0d
Date:   Tue Apr 30 01:52:46 2013 -0400
5b2f0d
5b2f0d
    MenuEditor: Don't save after restoring default conditions
5b2f0d
5b2f0d
diff --git a/Alacarte/MenuEditor.py b/Alacarte/MenuEditor.py
5b2f0d
index 4ed7172..e280ca3 100644
5b2f0d
--- a/Alacarte/MenuEditor.py
5b2f0d
+++ b/Alacarte/MenuEditor.py
5b2f0d
@@ -58,14 +58,12 @@ class MenuEditor(object):
5b2f0d
 
5b2f0d
     def restoreToSystem(self):
5b2f0d
         self.restoreTree(self.tree.get_root_directory())
5b2f0d
-        path = os.path.join(util.getUserMenuPath(), os.path.basename(self.tree.get_canonical_menu_path()))
5b2f0d
         try:
5b2f0d
-            os.unlink(path)
5b2f0d
+            os.unlink(self.path)
5b2f0d
         except OSError:
5b2f0d
             pass
5b2f0d
 
5b2f0d
         self.loadDOM()
5b2f0d
-        self.save()
5b2f0d
 
5b2f0d
     def restoreTree(self, menu):
5b2f0d
         item_iter = menu.iter()