[alacarte] MenuEditor: don't save on load



commit f20a288f39dfc040af324335cebba80a3d376ba1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed May 9 15:33:37 2012 -0300

    MenuEditor: don't save on load

 Alacarte/MenuEditor.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/Alacarte/MenuEditor.py b/Alacarte/MenuEditor.py
index ca7c909..51d7816 100644
--- a/Alacarte/MenuEditor.py
+++ b/Alacarte/MenuEditor.py
@@ -56,15 +56,12 @@ class MenuEditor(object):
 
     def __loadMenus(self):
         self.reloadMenus()
-        self.save(True)
         self.applications.visible_tree.connect("changed", self.__menuChanged)
 
-    def save(self, from_loading=False):
+    def save(self):
         fd = open(self.applications.path, 'w')
         fd.write(self.applications.dom.toprettyxml())
         fd.close()
-        if not from_loading:
-            self.__loadMenus()
 
     def quit(self):
         for file_name in os.listdir(util.getUserItemPath()):



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