Bug #1909 check to see if database is already open.

svn: r10344
This commit is contained in:
Gary Burton 2008-03-19 21:30:26 +00:00
parent 923e3d2f6a
commit 33e19a643c
2 changed files with 5 additions and 4 deletions

View File

@ -274,7 +274,7 @@ class DbManager(CLIDbManager):
if parent: if parent:
self.top.set_transient_for(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.cancel = self.glade.get_widget('cancel')
self.new = self.glade.get_widget('new') self.new = self.glade.get_widget('new')
self.remove = self.glade.get_widget('remove') 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.top.drag_dest_set(gtk.DEST_DEFAULT_ALL, ddtargets, ACTION_COPY)
self.remove.connect('clicked', self.__remove_db) self.remove.connect('clicked', self.__remove_db)
self.connect.connect('clicked', self.__load_selected)
self.new.connect('clicked', self.__new_db) self.new.connect('clicked', self.__new_db)
self.rename.connect('clicked', self.__rename_db) self.rename.connect('clicked', self.__rename_db)
self.repair.connect('clicked', self.__repair_db) self.repair.connect('clicked', self.__repair_db)
@ -327,7 +328,7 @@ class DbManager(CLIDbManager):
return self.__load_selected() return self.__load_selected()
return False return False
def __load_selected(self): def __load_selected(self, obj=None):
""" """
Load the selected family tree if possible, return True Load the selected family tree if possible, return True
if ok, and set RESPONSE_OK if ok, and set RESPONSE_OK

View File

@ -15883,13 +15883,13 @@ Very High</property>
</child> </child>
<child> <child>
<widget class="GtkButton" id="ok"> <widget class="GtkButton" id="connect">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_default">True</property> <property name="can_default">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property> <property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property> <property name="focus_on_click">True</property>
<property name="response_id">-5</property> <property name="response_id">0</property>
<child> <child>
<widget class="GtkAlignment" id="alignment8"> <widget class="GtkAlignment" id="alignment8">