From 6db0ce004074752fc1f01c1b975e9017dfe97fec Mon Sep 17 00:00:00 2001 From: Chris Trotman Date: Sun, 1 Dec 2013 19:11:37 +1100 Subject: [PATCH] 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. --- syncplay/ui/GuiConfiguration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/ui/GuiConfiguration.py b/syncplay/ui/GuiConfiguration.py index 6fa2d49..6cb53d5 100644 --- a/syncplay/ui/GuiConfiguration.py +++ b/syncplay/ui/GuiConfiguration.py @@ -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)