Fix #2176 - Wrong book's review and rating stars are shown

This commit is contained in:
robert00s
2017-02-25 22:14:17 +01:00
committed by Frans de Jonge
parent 21f6c7dcc6
commit 8b95b8fd96

View File

@@ -61,7 +61,16 @@ function BookStatusWidget:init()
}
self:getStatisticsSettings()
if self.settings then
self.summary = self.settings:readSetting("summary")
if self.settings:readSetting("summary") ~= nil then
self.summary = self.settings:readSetting("summary")
else
self.summary = {
rating = nil,
note = nil,
status = "",
modified = "",
}
end
end
self.small_font_face = Font:getFace("ffont", 15)