#Ubuntu: 225941
diff -Nur -x '*.orig' -x '*~' alacarte-0.11.6/Alacarte/MenuEditor.py alacarte-0.11.6.new/Alacarte/MenuEditor.py
--- alacarte-0.11.6/Alacarte/MenuEditor.py	2008-09-22 22:48:37.000000000 +0100
+++ alacarte-0.11.6.new/Alacarte/MenuEditor.py	2008-10-15 19:26:09.000000000 +0100
@@ -344,8 +344,8 @@
 		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):
