Commit db171ab7 authored by Michal Čihař's avatar Michal Čihař

Use correct store for lookup

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent aa92cdce
......@@ -498,13 +498,13 @@ class FileFormat(object):
def _find_unit_mono(self, context, store):
# We search by ID when using template
ttkit_unit = self.store.findid(context)
ttkit_unit = store.findid(context)
if ttkit_unit is not None:
return ttkit_unit
# Do not use findid as it does not work for empty translations
for search_unit in self.store.units:
for search_unit in store.units:
if search_unit.getid() == context:
return search_unit
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment