Fix dropfile on main GUI window
This commit is contained in:
parent
ec3bb067f3
commit
a97d1fe863
@ -1575,6 +1575,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
data = event.mimeData()
|
||||
urls = data.urls()
|
||||
if urls and urls[0].scheme() == 'file':
|
||||
url = event.mimeData().urls()[0]
|
||||
if isMacOS() and IsPySide:
|
||||
dropfilepath = os.path.abspath(NSURL.URLWithString_(str(url.toString())).filePathURL().path())
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user