mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 16:06:05 +01:00
pyqt6: Fix drop actions check
This commit is contained in:
parent
494e9f17a6
commit
81381aa8ec
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