mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
When drag & dropping onto the tag browser, set the current node to the one dropped upon.
This commit is contained in:
parent
b1f788a607
commit
97c5b041a3
@ -985,6 +985,7 @@ class TagsModel(QAbstractItemModel): # {{{
|
|||||||
def do_drop_from_library(self, md, action, row, column, parent):
|
def do_drop_from_library(self, md, action, row, column, parent):
|
||||||
idx = parent
|
idx = parent
|
||||||
if idx.isValid():
|
if idx.isValid():
|
||||||
|
self.tags_view.setCurrentIndex(idx)
|
||||||
node = self.data(idx, Qt.UserRole)
|
node = self.data(idx, Qt.UserRole)
|
||||||
if node.type == TagTreeItem.TAG:
|
if node.type == TagTreeItem.TAG:
|
||||||
fm = self.db.metadata_for_field(node.tag.category)
|
fm = self.db.metadata_for_field(node.tag.category)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user