Fix immediate change sync on search
A typo prevented us from waiting on the correct task. Also, remove a stray debug line. Change-Id: I9e8e6aed2246a2b1754f738c2c871e3e36bd7d3d
This commit is contained in:
parent
b4043c176b
commit
80460e3b4a
@ -92,7 +92,6 @@ class SearchDialog(mywid.ButtonDialog):
|
||||
def keypress(self, size, key):
|
||||
r = super(SearchDialog, self).keypress(size, key)
|
||||
commands = self.app.config.keymap.getCommands(r)
|
||||
self.app.log.debug('search %s %s' % (r, commands))
|
||||
if keymap.ACTIVATE in commands:
|
||||
self._emit('search')
|
||||
return None
|
||||
@ -271,7 +270,7 @@ class App(object):
|
||||
if not succeeded:
|
||||
raise Exception('Unable to find change.')
|
||||
for subtask in task.tasks:
|
||||
succeeded = task.wait(300)
|
||||
succeeded = subtask.wait(300)
|
||||
if not succeeded:
|
||||
raise Exception('Unable to sync change.')
|
||||
with self.db.getSession() as session:
|
||||
|
Loading…
x
Reference in New Issue
Block a user