Convert executablepath to unicode in GuiConfig

This commit is contained in:
Etoh 2013-06-08 20:39:01 +02:00
parent f7fb048099
commit 079f61eb6f

View File

@ -126,7 +126,7 @@ class ConfigDialog(QtGui.QDialog):
self.config['name'] = self.usernameTextbox.text() self.config['name'] = self.usernameTextbox.text()
self.config['room'] = self.defaultroomTextbox.text() self.config['room'] = self.defaultroomTextbox.text()
self.config['password'] = self.serverpassTextbox.text() self.config['password'] = self.serverpassTextbox.text()
self.config['playerPath'] = self.executablepathCombobox.currentText() self.config['playerPath'] = unicode(self.executablepathCombobox.currentText())
self.config['file'] = os.path.abspath(self.mediapathTextbox.text()) if self.mediapathTextbox.text() != "" else None self.config['file'] = os.path.abspath(self.mediapathTextbox.text()) if self.mediapathTextbox.text() != "" else None
if self.alwaysshowCheckbox.isChecked() == True: if self.alwaysshowCheckbox.isChecked() == True:
self.config['forceGuiPrompt'] = True self.config['forceGuiPrompt'] = True