fix: accept dragMoveEvent so file drops work on all desktop environments
This commit is contained in:
@@ -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