From b8e54e6e8117e39ad234168031e639bc501c76e3 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Wed, 19 Mar 2008 21:32:01 +0000 Subject: [PATCH] Bug #1909 check to see if database is already open. svn: r10345 --- src/DbManager.py | 5 +++-- src/glade/gramps.glade | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/DbManager.py b/src/DbManager.py index 744f6c52d..84595407f 100644 --- a/src/DbManager.py +++ b/src/DbManager.py @@ -274,7 +274,7 @@ class DbManager(CLIDbManager): if parent: self.top.set_transient_for(parent) - self.connect = self.glade.get_widget('ok') + self.connect = self.glade.get_widget('connect') self.cancel = self.glade.get_widget('cancel') self.new = self.glade.get_widget('new') self.remove = self.glade.get_widget('remove') @@ -303,6 +303,7 @@ class DbManager(CLIDbManager): self.top.drag_dest_set(gtk.DEST_DEFAULT_ALL, ddtargets, ACTION_COPY) self.remove.connect('clicked', self.__remove_db) + self.connect.connect('clicked', self.__load_selected) self.new.connect('clicked', self.__new_db) self.rename.connect('clicked', self.__rename_db) self.repair.connect('clicked', self.__repair_db) @@ -327,7 +328,7 @@ class DbManager(CLIDbManager): return self.__load_selected() return False - def __load_selected(self): + def __load_selected(self, obj=None): """ Load the selected family tree if possible, return True if ok, and set RESPONSE_OK diff --git a/src/glade/gramps.glade b/src/glade/gramps.glade index 078e3fb8b..32fca28aa 100644 --- a/src/glade/gramps.glade +++ b/src/glade/gramps.glade @@ -15883,13 +15883,13 @@ Very High - + True True True GTK_RELIEF_NORMAL True - -5 + 0