2006-07-31 Alex Roitman <shura@gramps-project.org>
* src/UndoHistory.py (UndoHistory._build_model): Only show the initial entry is database is really opened. svn: r7100
This commit is contained in:
		@@ -1,3 +1,7 @@
 | 
			
		||||
2006-07-31  Alex Roitman  <shura@gramps-project.org>
 | 
			
		||||
	* src/UndoHistory.py (UndoHistory._build_model): Only show the
 | 
			
		||||
	initial entry is database is really opened.
 | 
			
		||||
 | 
			
		||||
2006-07-31  Zsolt Foldvari  <zfoldvar@users.sourceforge.net>
 | 
			
		||||
	* src/NameDisplay.py: Rewrite in more object oriented way; Interface
 | 
			
		||||
	change.
 | 
			
		||||
 
 | 
			
		||||
@@ -208,15 +208,15 @@ class UndoHistory(ManagedWindow.ManagedWindow):
 | 
			
		||||
 | 
			
		||||
    def _build_model(self):
 | 
			
		||||
        self.model.clear()
 | 
			
		||||
 | 
			
		||||
        if self.db.abort_possible:
 | 
			
		||||
            mod_text = _('Database opened')
 | 
			
		||||
        else:
 | 
			
		||||
            mod_text = _('History cleared')
 | 
			
		||||
        time_text = time.ctime(self.db.undo_history_timestamp)
 | 
			
		||||
 | 
			
		||||
        fg = bg = None
 | 
			
		||||
        self.model.append(row=[time_text,mod_text,fg,bg])
 | 
			
		||||
 | 
			
		||||
        if self.db.undo_history_timestamp:
 | 
			
		||||
            if self.db.abort_possible:
 | 
			
		||||
                mod_text = _('Database opened')
 | 
			
		||||
            else:
 | 
			
		||||
                mod_text = _('History cleared')
 | 
			
		||||
            time_text = time.ctime(self.db.undo_history_timestamp)           
 | 
			
		||||
            self.model.append(row=[time_text,mod_text,fg,bg])
 | 
			
		||||
 | 
			
		||||
        # Get the not-None portion of transaction list
 | 
			
		||||
        translist = [item for item in self.db.translist if item]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user