Add filter progress to sort events tool

This commit is contained in:
Nick Hall 2017-01-26 22:36:54 +00:00
parent 1e54054953
commit 2f2b619762
2 changed files with 3 additions and 1 deletions

View File

@ -102,6 +102,7 @@ class BatchTool(Tool):
"""
def __init__(self, dbstate, user, options_class, name, parent=None):
self._user = user
if user.uistate:
parent = user.uistate.window
if not user.prompt(

View File

@ -107,7 +107,8 @@ class SortEvents(PluginWindows.ToolManagedWindowBatch):
Sort the personal events associated with the selected people.
"""
people_handles = self.filter.apply(self.db,
self.db.iter_person_handles())
self.db.iter_person_handles(),
user=self._user)
self.progress.set_pass(_("Sorting personal events..."),
self.db.get_number_of_people())
family_handles = []