From 279eb1bffbc3c0ee892a2efaf2b343b2019a858b Mon Sep 17 00:00:00 2001 From: Et0h Date: Mon, 2 Feb 2015 20:50:09 +0000 Subject: [PATCH] Prevent unicode autoplayMinUsers from breaking stuff --- syncplay/ui/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index bbdb38c..631e627 100644 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -811,7 +811,7 @@ class MainWindow(QtGui.QMainWindow): self.updateAutoPlayState(True) self.autoplayPushButton.setChecked(True) self.autoplayThresholdSpinbox.blockSignals(True) - self.autoplayThresholdSpinbox.setValue(settings.value("autoplayMinUsers", 2)) + self.autoplayThresholdSpinbox.setValue(int(settings.value("autoplayMinUsers", 2))) self.autoplayThresholdSpinbox.blockSignals(False) settings.endGroup() settings = QSettings("Syncplay", "Interface")