Change library.caches.refresh to respect search restrictions. Fixes problem where library shows all books after 'managing' something from the tag browser.

This commit is contained in:
Charles Haley 2010-08-08 17:27:56 +01:00
parent 087189f7fe
commit e96acc92b7

View File

@ -542,6 +542,8 @@ class ResultCache(SearchQueryParser):
if field is not None:
self.sort(field, ascending)
self._map_filtered = list(self._map)
if self.search_restriction:
self.search('', return_matches=False, ignore_search_restriction=False)
def seriescmp(self, sidx, siidx, x, y, library_order=None):
try: