Fixes #2015427 [Dragging cell to user category causes search filter to break](https://bugs.launchpad.net/calibre/+bug/2015427)
This commit is contained in:
Kovid Goyal 2023-04-06 17:03:58 +05:30
commit d0b27b38b6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -110,7 +110,11 @@ class TagBrowserMixin: # {{{
self.library_view.model().count_changed() self.library_view.model().count_changed()
def user_categories_edited(self): def user_categories_edited(self):
self.library_view.model().refresh() current_row_id = self.library_view.current_id
self.library_view.model().refresh(reset=True)
self.library_view.model().research(reset=False)
self.library_view.current_id = current_row_id # the setter checks for None
def do_restriction_error(self, e): def do_restriction_error(self, e):
error_dialog(self.tags_view, _('Invalid search restriction'), error_dialog(self.tags_view, _('Invalid search restriction'),