From 2f918cf16ab3cff4833c17d0ff30b6d138d5c0b5 Mon Sep 17 00:00:00 2001 From: Zsolt Foldvari Date: Sat, 5 Apr 2008 22:30:17 +0000 Subject: [PATCH] Use real timestamp instead of 'Never' for newly created DBs. This is needed because when the DBManager is re-opened after a new DB has been created the timestamp would replace the 'Never' string anyway without opening the DB, since now we always have metadata table created. svn: r10488 --- src/DbManager.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/DbManager.py b/src/DbManager.py index 3705e0a72..4487fd201 100644 --- a/src/DbManager.py +++ b/src/DbManager.py @@ -196,8 +196,10 @@ class CLIDbManager: newdb = gen.db.GrampsDBDir() newdb.write_version(new_path) - self.current_names.append((title, new_path, path_name, _("Never"), 0, - False, "")) + (tval, last) = time_val(new_path) + + self.current_names.append((title, new_path, path_name, + last, tval, False, "")) return new_path, title def _create_new_db(self, title=None): @@ -831,8 +833,9 @@ class DbManager(CLIDbManager): """ new_path, title = self._create_new_db_cli(title) path_name = os.path.join(new_path, NAME_FILE) + (tval, last) = time_val(new_path) node = self.model.append(None, [title, new_path, path_name, - _("Never"), 0, False, '']) + last, tval, False, '']) self.selection.select_iter(node) path = self.model.get_path(node) self.dblist.set_cursor(path, focus_column=self.column,