Prevent unicode autoplayMinUsers from breaking stuff

This commit is contained in:
Et0h 2015-02-02 20:50:09 +00:00
parent 92b016ea16
commit 279eb1bffb

View File

@ -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")