From 18a17b0aa96c6eae11862740b94421a433a24a93 Mon Sep 17 00:00:00 2001 From: Et0h Date: Tue, 17 Nov 2015 18:17:04 +0000 Subject: [PATCH] Ignore spaces etc from host input (re-work of contribution by DerGenaue) --- syncplay/ui/GuiConfiguration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/syncplay/ui/GuiConfiguration.py b/syncplay/ui/GuiConfiguration.py index bfa92ec..4d87aa1 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'].replace(" ","").replace("\t", "").replace("\n","").replace("\r","") else: self.config['host'] = None self.config['playerPath'] = unicode(self.safenormcaseandpath(self.executablepathCombobox.currentText()))