Fix FTM: rename a locked db, don't open, but title bar changes

Fixes #10303
This commit is contained in:
prculley 2017-12-07 09:34:46 -06:00 committed by Nick Hall
parent d8057c2b0b
commit 59e367acf9

View File

@ -557,7 +557,7 @@ class DbManager(CLIDbManager, ManagedWindow):
if len(new_text) > 0: if len(new_text) > 0:
node = self.model.get_iter(path) node = self.model.get_iter(path)
old_text = self.model.get_value(node, NAME_COL) 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 # this database is loaded. We must change the title
# in case we change the name several times before quitting, # in case we change the name several times before quitting,
# we save the first old name. # we save the first old name.