Author: titmuss
Date: Fri Jul 4 07:36:01 2008
New Revision: 2663
URL: http://svn.slimdevices.com?rev=2663&root=Jive&view=rev
Log:
Bug: N/A
Description:
Fix changing the visiblity of widgets when they are removed from a Group.
EVENT_HIDE must only be sent when the widget
still belongs to the Group, it may have been moved to a differnet Group object
in which case the EVENT_HIDE incorrectly sets
the visible state.
This bug caused the item 'spinny' not to spin have scrolling up in menus.
Modified:
7.1/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Group.lua
Modified: 7.1/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Group.lua
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Group.lua?rev=2663&root=Jive&r1=2662&r2=2663&view=diff
==============================================================================
--- 7.1/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Group.lua (original)
+++ 7.1/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Group.lua Fri Jul 4
07:36:01 2008
@@ -109,11 +109,11 @@
end
if self.widgets[key] then
- if self.visible then
- self.widgets[key]:dispatchNewEvent(EVENT_HIDE)
- end
+ if self.widgets[key].parent == self then
+ if self.visible then
+ self.widgets[key]:dispatchNewEvent(EVENT_HIDE)
+ end
- if self.widgets[key].parent == self then
self.widgets[key].parent = nil
end
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins