From 3150fae2b8e46ffa61f6170ffc72a7c56697cb7d Mon Sep 17 00:00:00 2001 From: prculley Date: Sun, 11 Jun 2017 11:30:10 -0500 Subject: [PATCH] Error on 'cancel' for db upgrade Fixes #10065. --- gramps/gui/viewmanager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/viewmanager.py b/gramps/gui/viewmanager.py index 494bae522..ab1177087 100644 --- a/gramps/gui/viewmanager.py +++ b/gramps/gui/viewmanager.py @@ -1178,7 +1178,8 @@ class ViewManager(CLIManager): self.dbstate.db.close(user=self.user) (filename, title) = value self.db_loader.read_file(filename) - self._post_load_newdb(filename, 'x-directory/normal', title) + if self.dbstate.db.is_open(): + self._post_load_newdb(filename, 'x-directory/normal', title) else: if dialog.after_change != "": # We change the title of the main window.