mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 14:26:06 +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):
|
def dragEnterEvent(self, event):
|
||||||
if int(event.possibleActions() & Qt.DropAction.CopyAction) + \
|
if not event.possibleActions() & (Qt.DropAction.CopyAction | Qt.DropAction.MoveAction):
|
||||||
int(event.possibleActions() & Qt.DropAction.MoveAction) == 0:
|
|
||||||
return
|
return
|
||||||
paths = self.paths_from_event(event)
|
paths = self.paths_from_event(event)
|
||||||
md = event.mimeData()
|
md = event.mimeData()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue