From 59e367acf99f856a986a801a6f363b50699ecac7 Mon Sep 17 00:00:00 2001 From: prculley Date: Thu, 7 Dec 2017 09:34:46 -0600 Subject: [PATCH] Fix FTM: rename a locked db, don't open, but title bar changes Fixes #10303 --- gramps/gui/dbman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/dbman.py b/gramps/gui/dbman.py index c979f6b3d..45c9f8559 100644 --- a/gramps/gui/dbman.py +++ b/gramps/gui/dbman.py @@ -557,7 +557,7 @@ class DbManager(CLIDbManager, ManagedWindow): if len(new_text) > 0: node = self.model.get_iter(path) old_text = self.model.get_value(node, NAME_COL) - if self.model.get_value(node, ICON_COL) not in [None, ""]: + if self.model.get_value(node, ICON_COL) == 'document-open': # this database is loaded. We must change the title # in case we change the name several times before quitting, # we save the first old name.