[alacarte] MenuEditor: undo and redo lists should not be global



commit 75522c95a9955f0185f70bd35e8278905a8c6195
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed May 9 15:34:07 2012 -0300

    MenuEditor: undo and redo lists should not be global

 Alacarte/MenuEditor.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/Alacarte/MenuEditor.py b/Alacarte/MenuEditor.py
index 51d7816..28aebd8 100644
--- a/Alacarte/MenuEditor.py
+++ b/Alacarte/MenuEditor.py
@@ -27,12 +27,10 @@ class Menu(object):
     dom = None
 
 class MenuEditor(object):
-    #lists for undo/redo functionality
-    __undo = []
-    __redo = []
-
     def __init__(self):
         self.__loadMenus()
+        self.__undo = []
+        self.__redo = []
 
     def reloadMenus(self):
         self.applications = Menu()



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