Make .exe check in GuiConfig case insensitive
This commit is contained in:
parent
2b32266e37
commit
bcbdde7929
@ -169,7 +169,7 @@ class ConfigDialog(QtGui.QDialog):
|
|||||||
dropfilepath = unicode(urls[0].path())
|
dropfilepath = unicode(urls[0].path())
|
||||||
else:
|
else:
|
||||||
dropfilepath = unicode(urls[0].path())[1:] # Removes starting slash
|
dropfilepath = unicode(urls[0].path())[1:] # Removes starting slash
|
||||||
if dropfilepath[-4:] == ".exe":
|
if dropfilepath[-4:].lower() == ".exe":
|
||||||
self.executablepathCombobox.setEditText(dropfilepath)
|
self.executablepathCombobox.setEditText(dropfilepath)
|
||||||
else:
|
else:
|
||||||
self.mediapathTextbox.setText(dropfilepath)
|
self.mediapathTextbox.setText(dropfilepath)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user