Ignore Spaces, etc... from host input
Request by nnamrrehdlopoel who likes to Copy- / Paste Spaces
This commit is contained in:
parent
9752aad75d
commit
83950df7ac
@ -291,6 +291,7 @@ class ConfigDialog(QtGui.QDialog):
|
|||||||
self.processWidget(self, lambda w: self.saveValues(w))
|
self.processWidget(self, lambda w: self.saveValues(w))
|
||||||
if self.hostCombobox.currentText():
|
if self.hostCombobox.currentText():
|
||||||
self.config['host'] = self.hostCombobox.currentText() if ":" in self.hostCombobox.currentText() else self.hostCombobox.currentText() + ":" + unicode(constants.DEFAULT_PORT)
|
self.config['host'] = self.hostCombobox.currentText() if ":" in self.hostCombobox.currentText() else self.hostCombobox.currentText() + ":" + unicode(constants.DEFAULT_PORT)
|
||||||
|
self.config['host'] = self.config['host'].translate(None, " \t\n\r")
|
||||||
else:
|
else:
|
||||||
self.config['host'] = None
|
self.config['host'] = None
|
||||||
self.config['playerPath'] = unicode(self.safenormcaseandpath(self.executablepathCombobox.currentText()))
|
self.config['playerPath'] = unicode(self.safenormcaseandpath(self.executablepathCombobox.currentText()))
|
||||||
@ -996,4 +997,4 @@ class ConfigDialog(QtGui.QDialog):
|
|||||||
self.processWidget(self, lambda w: self.loadTooltips(w))
|
self.processWidget(self, lambda w: self.loadTooltips(w))
|
||||||
self.processWidget(self, lambda w: self.loadValues(w))
|
self.processWidget(self, lambda w: self.loadValues(w))
|
||||||
self.processWidget(self, lambda w: self.connectChildren(w))
|
self.processWidget(self, lambda w: self.connectChildren(w))
|
||||||
self.populateEmptyServerList()
|
self.populateEmptyServerList()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user