* src/EventEdit.py (get_place): Typo.

svn: r4173
This commit is contained in:
Alex Roitman 2005-03-14 00:10:36 +00:00
parent 35bc979e8e
commit 6b8d0501f6
2 changed files with 4 additions and 5 deletions

View File

@ -10,6 +10,8 @@
* src/GrampsInMemDB.py: Do not commit objects with empty handles.
* src/Utils.py (family_name): Add clause for unknown parents.
* src/EventEdit.py (get_place): Typo.
2005-03-12 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/GenericFilter.py (Rule,GenericFilter): New methods prepare() and
reset(), that are called before/after a filter is applied, to properly

View File

@ -298,11 +298,8 @@ class EventEditor:
def get_place(self,field):
text = unicode(field.get_text()).strip()
if text:
if self.pmap.has_key(text):
return self.parent.db.get_event_from_handle(self.pmap[text])
else:
return None
if text and self.pmap.has_key(text):
return self.parent.db.get_place_from_handle(self.pmap[text])
else:
return None