Fix GuiConfig DropEvent platform check
This commit is contained in:
parent
02d6bb96af
commit
ad3946e91e
@ -227,7 +227,7 @@ class ConfigDialog(QtGui.QDialog):
|
||||
data = event.mimeData()
|
||||
urls = data.urls()
|
||||
if urls and urls[0].scheme() == 'file':
|
||||
if sys.platform.startswith('windows'):
|
||||
if sys.platform.startswith('win'):
|
||||
dropfilepath = unicode(urls[0].path())[1:] # Removes starting slash
|
||||
else:
|
||||
dropfilepath = unicode(urls[0].path())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user