diff --git a/pyfpdb/fpdb.pyw b/pyfpdb/fpdb.pyw index 9b003d3d..b0778610 100755 --- a/pyfpdb/fpdb.pyw +++ b/pyfpdb/fpdb.pyw @@ -284,12 +284,12 @@ class fpdb: if len(self.nb_tab_names) == 1: # only main tab open, reload profile self.load_profile() + dia.destroy() else: + dia.destroy() # destroy prefs before raising warning, otherwise parent is dia rather than self.window self.warning_box("Updated preferences have not been loaded because " + "windows are open. Re-start fpdb to load them.") - dia.destroy() - def dia_maintain_dbs(self, widget, data=None): self.warning_box("Unimplemented: Maintain Databases") return