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:
parent
86edc9d446
commit
545e170e7f
@ -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>
|
2006-07-31 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||||
* src/NameDisplay.py: Rewrite in more object oriented way; Interface
|
* src/NameDisplay.py: Rewrite in more object oriented way; Interface
|
||||||
change.
|
change.
|
||||||
|
@ -208,15 +208,15 @@ class UndoHistory(ManagedWindow.ManagedWindow):
|
|||||||
|
|
||||||
def _build_model(self):
|
def _build_model(self):
|
||||||
self.model.clear()
|
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
|
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
|
# Get the not-None portion of transaction list
|
||||||
translist = [item for item in self.db.translist if item]
|
translist = [item for item in self.db.translist if item]
|
||||||
|
Loading…
Reference in New Issue
Block a user