mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #1902416 [Private bug](https://bugs.launchpad.net/calibre/+bug/1902416)
This commit is contained in:
parent
9789484a06
commit
129ca06b2b
@ -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…
x
Reference in New Issue
Block a user