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:
Alex Roitman 2006-08-01 02:24:49 +00:00
parent 86edc9d446
commit 545e170e7f
2 changed files with 12 additions and 8 deletions

View File

@ -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.

View File

@ -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]