diff --git a/src/gui/dbman.py b/src/gui/dbman.py index d2545a4a0..be9185ed2 100644 --- a/src/gui/dbman.py +++ b/src/gui/dbman.py @@ -550,7 +550,7 @@ class DbManager(CLIDbManager): # close the database if the user has requested to delete the # active database - if self.data_to_delete[OPEN_COL]: + if self.data_to_delete[PATH_COL] == self.active: self.dbstate.no_database() store, node = self.selection.get_selected()