fix already open error

svn: r6205
This commit is contained in:
Don Allingham 2006-03-24 05:07:58 +00:00
parent bc828440eb
commit 0af1deb627

View File

@ -69,6 +69,7 @@ import GrampsDisplay
import RelLib import RelLib
import AutoComp import AutoComp
import Config import Config
import Errors
from _EditPrimary import EditPrimary from _EditPrimary import EditPrimary
from PluginUtils import ReportUtils from PluginUtils import ReportUtils
@ -589,7 +590,10 @@ class EditFamily(EditPrimary):
self.obj = self.dbstate.db.get_family_from_handle(common[0]) self.obj = self.dbstate.db.get_family_from_handle(common[0])
self.obj.add_child_handle(clist[0]) self.obj.add_child_handle(clist[0])
self.close_window() self.close_window()
try:
EditFamily(self.dbstate,self.uistate,[],self.obj) EditFamily(self.dbstate,self.uistate,[],self.obj)
except Errors.WindowActiveError:
pass
elif self.obj.handle not in common: elif self.obj.handle not in common:
import QuestionDialog import QuestionDialog
QuestionDialog.WarningDialog( QuestionDialog.WarningDialog(