Author: bklaas
Date: Thu Apr 15 13:27:42 2010
New Revision: 8707

URL: http://svn.slimdevices.com/jive?rev=8707&view=rev
Log:
Bug: n/a
Description: fully dereference settings.views[v.style] so NowPlaying doesn't 
throw a stack trace

Modified:
    
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua

Modified: 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua?rev=8707&r1=8706&r2=8707&view=diff
==============================================================================
--- 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
 (original)
+++ 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
 Thu Apr 15 13:27:42 2010
@@ -147,7 +147,7 @@
                local settings = self:getSettings()
                local playerId = self.player:getId()
                for i, v in pairs(npSkinStyles) do
-                       if settings.views[v.style] == false then
+                       if settings and settings.views and 
settings.views[v.style] == false then
                                v.enabled = false
                        else
                                v.enabled = true
@@ -228,6 +228,10 @@
        local settings = self:getSettings()
        local playerId = self.player:getId()
        local savedSettings = true
+
+       if not settings.views then
+               settings.views = {}
+       end
 
        if #settings.views == 0 then
                for i, v in ipairs(npscreenViews) do

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to