- some changes due of porting to PyQt6

This commit is contained in:
Marius Stanciu
2021-08-11 15:46:29 +03:00
parent 40034540cf
commit 63506b57a3
3 changed files with 6 additions and 6 deletions

View File

@@ -3977,7 +3977,7 @@ class MainGUI(QtWidgets.QMainWindow):
def dropEvent(self, event):
if event.mimeData().hasUrls:
event.setDropAction(QtCore.Qt.CopyAction)
event.setDropAction(QtCore.Qt.DropAction.CopyAction)
event.accept()
for url in event.mimeData().urls():
self.filename = str(url.toLocalFile())