mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
pyqt6: Fix drop actions check
This commit is contained in:
parent
37cc609c31
commit
f8cf9b4235
1 changed files with 1 additions and 2 deletions
|
|
@ -219,8 +219,7 @@ def dnd_merge_ok(md):
|
|||
|
||||
|
||||
def dragEnterEvent(self, event):
|
||||
if int(event.possibleActions() & Qt.DropAction.CopyAction) + \
|
||||
int(event.possibleActions() & Qt.DropAction.MoveAction) == 0:
|
||||
if not event.possibleActions() & (Qt.DropAction.CopyAction | Qt.DropAction.MoveAction):
|
||||
return
|
||||
paths = self.paths_from_event(event)
|
||||
md = event.mimeData()
|
||||
|
|
|
|||
Loading…
Reference in a new issue