Convert the 'ShowMoreSettings' config value to a string before reading it.

The 'ShowMoreSettings' GUI configuration file can be saved as a boolean.
This causes a TypeError when we try to retrieve the lower case string.
This commit is contained in:
Chris Trotman 2013-12-01 19:11:37 +11:00
parent bcf1065272
commit 6db0ce0040

View File

@ -150,7 +150,7 @@ class ConfigDialog(QtGui.QDialog):
def getMoreState(self):
settings = QSettings("Syncplay", "MoreSettings")
settings.beginGroup("MoreSettings")
morestate = unicode.lower(settings.value("ShowMoreSettings", "false"))
morestate = unicode.lower(unicode(settings.value("ShowMoreSettings", "false")))
settings.endGroup()
if morestate == "true":
return(True)