From 0de6d20340ff4ccdbc28a6be0724f9b34694164c Mon Sep 17 00:00:00 2001 From: gimick Date: Thu, 24 Jun 2010 22:47:42 +0100 Subject: [PATCH] fix focus of warning when editing prefs if any notebook tabs open --- pyfpdb/fpdb.pyw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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