fix: accept dragMoveEvent so file drops work on all desktop environments
This commit is contained in:
1 parent
31f4df4c5b
commit
d720fc0541
1 file changed
+4
@@ -661,6 +661,10 @@ class PlaylistWidget(QListWidget):
|
|||||||
if event.mimeData().hasUrls():
|
if event.mimeData().hasUrls():
|
||||||
event.acceptProposedAction()
|
event.acceptProposedAction()
|
||||||
|
|
||||||
|
def dragMoveEvent(self, event) -> None:
|
||||||
|
if event.mimeData().hasUrls():
|
||||||
|
event.acceptProposedAction()
|
||||||
|
|
||||||
def dropEvent(self, event: QDropEvent) -> None:
|
def dropEvent(self, event: QDropEvent) -> None:
|
||||||
paths = [
|
paths = [
|
||||||
u.toLocalFile() for u in event.mimeData().urls()
|
u.toLocalFile() for u in event.mimeData().urls()
|
||||||
|
|||||||
Reference in new issue
Block a user