Bugzilla – Bug 6942
don't break encapsulation when manipulating current playlist menu
Last modified: 2008-05-15 12:27:34 UTC
this block of code in SlimBrowser.showPlaylist needs to be fixed so it doesn't inspect the menu table directly. Instead, menu methods like menu:setSelectedIndex() should be used. if playlistSize == nil or (playlistSize and playlistSize <= 1) then _statusStep.menu["_lastSelectedIndex"] = 1 _statusStep.menu["_lastSelectedOffset"] = 1 _statusStep.menu.selected = 1 _statusStep.menu:_updateWidgets() -- otherwise bring the currently playing item to the screen with offset of 2 elseif _statusStep.menu.list.currentIndex then _statusStep.menu.selected = _statusStep.menu.list.currentIndex if _statusStep.menu["_lastSelectedIndex"] then _statusStep.menu["_lastSelectedIndex"] = _statusStep.menu.selected _statusStep.menu["_lastSelectedOffset"] = 2 end -- since we've hacked the _lastSelectedIndex, it's necessary to -- _updateWidgets to display correctly selected item _statusStep.menu:_updateWidgets() end
fixed in trunk r1989
(In reply to comment #1) > fixed in trunk r1989 >
This bug has recently been fixed in the latest release of SqueezeCenter 7.0.1 Please try that version, if you still see the error, then reopen this bug. To download this version, please navigate to: http://www.slimdevices.com/su_downloads.html