Make .exe check in GuiConfig case insensitive

This commit is contained in:
Etoh 2013-06-09 23:03:11 +02:00
parent 2b32266e37
commit bcbdde7929

View File

@ -169,7 +169,7 @@ class ConfigDialog(QtGui.QDialog):
dropfilepath = unicode(urls[0].path())
else:
dropfilepath = unicode(urls[0].path())[1:] # Removes starting slash
if dropfilepath[-4:] == ".exe":
if dropfilepath[-4:].lower() == ".exe":
self.executablepathCombobox.setEditText(dropfilepath)
else:
self.mediapathTextbox.setText(dropfilepath)