mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-21 16:44:25 +02:00
Fix #1902416 [Private bug](https://bugs.launchpad.net/calibre/+bug/1902416)
This commit is contained in:
parent
9789484a06
commit
129ca06b2b
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ def dragEnterEvent(self, event):
|
|||
def dropEvent(self, event):
|
||||
md = event.mimeData()
|
||||
if dnd_merge_ok(md):
|
||||
ids = set(map(int, bytes(md.data('application/calibre+from_library')).decode('utf-8').split(' ')))
|
||||
ids = set(map(int, filter(None, bytes(md.data('application/calibre+from_library')).decode('utf-8').split(' '))))
|
||||
row = self.indexAt(event.pos()).row()
|
||||
if row > -1 and ids:
|
||||
book_id = self.model().id(row)
|
||||
|
|
|
|||
Loading…
Reference in a new issue