Fix GuiConfig handling of empty filePath

This commit is contained in:
Etoh 2013-06-08 13:41:28 +02:00
parent d3db5831ec
commit 12cb0cc1ec

View File

@ -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: