Author: titmuss
Date: Mon Feb 4 15:10:46 2008
New Revision: 1794
URL: http://svn.slimdevices.com?rev=1794&root=Jive&view=rev
Log:
Bug: 6934
Description:
Playlists > 200 items did not always load correctly, and the playlist screen
would always be empty.
Modified:
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/DB.lua
Modified: branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/DB.lua
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/DB.lua?rev=1794&root=Jive&r1=1793&r2=1794&view=diff
==============================================================================
--- branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/DB.lua (original)
+++ branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/DB.lua Mon Feb 4
15:10:46 2008
@@ -174,7 +174,7 @@
cFrom = chunk["offset"] + 1
cTo = cFrom + #chunk["item_loop"] - 1
end
-
+
-- store chunk
local key = math.modf(cFrom / BLOCK_SIZE)
self.store[key] = chunk["item_loop"]
@@ -228,7 +228,7 @@
end
-- load first chunk
- if not self.last_chunk then
+ if not self.store[0] then
return 0, BLOCK_SIZE
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins