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:
Alex Roitman 2006-04-14 22:31:23 +00:00
parent c463c8e846
commit 4a373a8a37
2 changed files with 13 additions and 9 deletions

View File

@ -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

View File

@ -1237,10 +1237,10 @@ class PersonRefEmbedList(EmbeddedList):
self.rebuild()
def edit_button_clicked(self, obj):
from Editors import EditPersonRef
try:
ref = self.get_selected()
if ref:
try:
from Editors import EditPersonRef
EditPersonRef(
self.dbstate, self.uistate, self.track,
ref, self.edit_callback)