Always store default port if no port is specified in GuiConfig
This commit is contained in:
parent
520106c44e
commit
d6da00dd60
@ -171,7 +171,7 @@ class ConfigDialog(QtGui.QDialog):
|
|||||||
self.saveMediaBrowseSettings()
|
self.saveMediaBrowseSettings()
|
||||||
|
|
||||||
def _saveDataAndLeave(self):
|
def _saveDataAndLeave(self):
|
||||||
self.config['host'] = self.hostTextbox.text()
|
self.config['host'] = self.hostTextbox.text() if ":" in self.hostTextbox.text() else self.hostTextbox.text() + ":" + unicode(constants.DEFAULT_PORT)
|
||||||
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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user