changeset 1337:05ced4a389bf

Fix issue of mixing actions for initialiaztion with user actions - When user undo last actions, it also remove actions for initialization of a new document.
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 05 Feb 2011 13:46:07 +0800
parents 0b5ee9c90af7
children d0e6f350b3fd
files pyink/MBScene.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/MBScene.py	Tue Feb 01 23:20:26 2011 +0800
+++ b/pyink/MBScene.py	Sat Feb 05 13:46:07 2011 +0800
@@ -401,6 +401,8 @@
 
 	self.top.show_all()
 	self.last_update = None
+	
+	self.markUndo("Initialize")
 	return False
 
     ## \brief To handle context menu event.