mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #2015427 [Dragging cell to user category causes search filter to break](https://bugs.launchpad.net/calibre/+bug/2015427)
This commit is contained in:
commit
d0b27b38b6
@ -110,7 +110,11 @@ class TagBrowserMixin: # {{{
|
||||
self.library_view.model().count_changed()
|
||||
|
||||
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):
|
||||
error_dialog(self.tags_view, _('Invalid search restriction'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user