* src/EventEdit.py (get_place): Typo.
svn: r4173
This commit is contained in:
parent
98e031a825
commit
f2f3d1530c
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user