mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pyqt6: Fix drop actions check
This commit is contained in:
parent
b76c76390e
commit
50e5fb1e4f
@ -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…
x
Reference in New Issue
Block a user