Fix dropfile on main GUI window

This commit is contained in:
Etoh 2017-12-25 13:26:26 +00:00
parent ec3bb067f3
commit a97d1fe863

View File

@ -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: