2006-04-14 Alex Roitman <shura@gramps-project.org>
* src/DisplayTabs.py (edit_button_clicked): Proceed only if selection exists. svn: r6345
This commit is contained in:
parent
c463c8e846
commit
4a373a8a37
@ -1,3 +1,7 @@
|
||||
2006-04-14 Alex Roitman <shura@gramps-project.org>
|
||||
* src/DisplayTabs.py (edit_button_clicked): Proceed only if
|
||||
selection exists.
|
||||
|
||||
2006-04-14 Don Allingham <don@gramps-project.org>
|
||||
* src/GrampsDb/_ReadXML.py: handle ChildRefType
|
||||
* src/GrampsDb/_ConstXML.py: remove unused map
|
||||
|
@ -1237,15 +1237,15 @@ class PersonRefEmbedList(EmbeddedList):
|
||||
self.rebuild()
|
||||
|
||||
def edit_button_clicked(self, obj):
|
||||
from Editors import EditPersonRef
|
||||
|
||||
try:
|
||||
ref = self.get_selected()
|
||||
EditPersonRef(
|
||||
self.dbstate, self.uistate, self.track,
|
||||
ref, self.edit_callback)
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
ref = self.get_selected()
|
||||
if ref:
|
||||
try:
|
||||
from Editors import EditPersonRef
|
||||
EditPersonRef(
|
||||
self.dbstate, self.uistate, self.track,
|
||||
ref, self.edit_callback)
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
|
||||
def edit_callback(self, obj):
|
||||
self.rebuild()
|
||||
|
Loading…
Reference in New Issue
Block a user