Stop iterating when a component is found

This commit is contained in:
Unrud 2017-03-18 04:58:55 +01:00
parent c027b68b4f
commit a05cca563a

View File

@ -180,6 +180,7 @@ def _prop_match(item, filter_):
for component in item.components():
if component.name in ("VTODO", "VEVENT", "VJOURNAL"):
vobject_item = component
break
else:
vobject_item = item.item
if filter_length == 0: