mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
prevent dropping items on global search term user categories
This commit is contained in:
parent
9626ccab2b
commit
38a3d25562
@ -419,7 +419,7 @@ class TagsView(QTreeView): # {{{
|
||||
if item.type == TagTreeItem.TAG and flags & Qt.ItemIsDropEnabled:
|
||||
self.setDropIndicatorShown(not src_is_tb)
|
||||
return
|
||||
if item.type == TagTreeItem.CATEGORY:
|
||||
if item.type == TagTreeItem.CATEGORY and not item.is_gst:
|
||||
fm_dest = self.db.metadata_for_field(item.category_key)
|
||||
if fm_dest['kind'] == 'user':
|
||||
if src_is_tb:
|
||||
|
Loading…
x
Reference in New Issue
Block a user