diff options
author | pazz <patricktotzke@gmail.com> | 2011-05-27 10:48:44 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-05-27 10:48:44 +0100 |
commit | 31aaff7d7a436570f5364954e71d07da19c994df (patch) | |
tree | abf81500c841e19242c9e2105bf082e7f9bf5fb9 /alot/buffer.py | |
parent | c2cbc549b69e8548e886caaf0a0a10d0964d1a82 (diff) |
refresh search results if toggletag removes a hit
Diffstat (limited to 'alot/buffer.py')
-rw-r--r-- | alot/buffer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/buffer.py b/alot/buffer.py index 03e0cf8a..c25e0b66 100644 --- a/alot/buffer.py +++ b/alot/buffer.py @@ -110,10 +110,10 @@ class SearchBuffer(Buffer): self.isinitialized = True self.result_count = self.dbman.count_messages(self.querystring) - tids = self.dbman.search_thread_ids(self.querystring) - self.threadlist = IteratorWalker(tids.__iter__(), widgets.ThreadlineWidget, + self.tids = self.dbman.search_thread_ids(self.querystring) + self.threadlist = IteratorWalker(self.tids.__iter__(), widgets.ThreadlineWidget, dbman=self.dbman) - self.ui.logger.debug(self.threadlist.lines) + self.ui.logger.debug(len(self.tids)) self.original_widget = urwid.ListBox(self.threadlist) self.ui.logger.debug(self.threadlist.lines) |