From 83950df7ac08ce823ee1354f7ea0a1dfe2f6769f Mon Sep 17 00:00:00 2001 From: DerGenaue Date: Mon, 26 Oct 2015 21:30:14 +0100 Subject: [PATCH] Ignore Spaces, etc... from host input Request by nnamrrehdlopoel who likes to Copy- / Paste Spaces --- syncplay/ui/GuiConfiguration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncplay/ui/GuiConfiguration.py b/syncplay/ui/GuiConfiguration.py index bfa92ec..a306d9f 100644 --- a/syncplay/ui/GuiConfiguration.py +++ b/syncplay/ui/GuiConfiguration.py @@ -291,6 +291,7 @@ class ConfigDialog(QtGui.QDialog): self.processWidget(self, lambda w: self.saveValues(w)) 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.config['host'].translate(None, " \t\n\r") else: self.config['host'] = None 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.loadValues(w)) self.processWidget(self, lambda w: self.connectChildren(w)) - self.populateEmptyServerList() \ No newline at end of file + self.populateEmptyServerList()