[alacarte] make undo work when deleting files



commit 4744a4edf4770791ab5be643a515df15ef12074b
Author: Travis Watkins <amaranth ubuntu com>
Date:   Mon Aug 22 20:32:09 2011 +0200

    make undo work when deleting files
    
    https://bugzilla.gnome.org/show_bug.cgi?id=573680

 Alacarte/MenuEditor.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Alacarte/MenuEditor.py b/Alacarte/MenuEditor.py
index 73dd6c0..a160e33 100644
--- a/Alacarte/MenuEditor.py
+++ b/Alacarte/MenuEditor.py
@@ -348,8 +348,8 @@ class MenuEditor:
 		self.save()
 
 	def deleteItem(self, item):
-		self.__writeItem(item, hidden=True)
 		self.__addUndo([item,])
+		self.__writeItem(item, hidden=True)
 		self.save()
 
 	def deleteMenu(self, menu):



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