Fix GuiConfig DropEvent platform check

This commit is contained in:
Et0h 2014-07-19 22:37:25 +01:00
parent 02d6bb96af
commit ad3946e91e

View File

@ -227,7 +227,7 @@ class ConfigDialog(QtGui.QDialog):
data = event.mimeData() data = event.mimeData()
urls = data.urls() urls = data.urls()
if urls and urls[0].scheme() == 'file': 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 dropfilepath = unicode(urls[0].path())[1:] # Removes starting slash
else: else:
dropfilepath = unicode(urls[0].path()) dropfilepath = unicode(urls[0].path())