Skip to content

Commit

Permalink
Convert the 'ShowMoreSettings' config value to a string before readin…
Browse files Browse the repository at this point in the history
…g 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.
  • Loading branch information
solarnz committed Dec 1, 2013
1 parent bcf1065 commit 6db0ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncplay/ui/GuiConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def saveMediaBrowseSettings(self):
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)
Expand Down

0 comments on commit 6db0ce0

Please sign in to comment.