Fix GuiConfig handling of empty filePath
This commit is contained in:
parent
d3db5831ec
commit
12cb0cc1ec
@ -127,7 +127,7 @@ class ConfigDialog(QtGui.QDialog):
|
||||
self.config['room'] = self.defaultroomTextbox.text()
|
||||
self.config['password'] = self.serverpassTextbox.text()
|
||||
self.config['playerPath'] = self.executablepathCombobox.currentText()
|
||||
self.config['file'] = os.path.abspath(self.mediapathTextbox.text())
|
||||
self.config['file'] = os.path.abspath(self.mediapathTextbox.text()) if self.mediapathTextbox.text() != "" else None
|
||||
if self.alwaysshowCheckbox.isChecked() == True:
|
||||
self.config['forceGuiPrompt'] = True
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user