cleanup grayout handling in servicelist.. so no more grayout in timeout channelselect...
authorghost <andreas.monzner@multimedia-labs.de>
Sat, 17 Oct 2009 12:09:47 +0000 (14:09 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Sat, 17 Oct 2009 12:09:47 +0000 (14:09 +0200)
lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/plugin.py
lib/service/listboxservice.cpp

index 48669c7..2c0edf5 100755 (executable)
@@ -510,12 +510,6 @@ class myChannelSelection(ChannelSelectionBase):
        def __init__(self, session, title):
                ChannelSelectionBase.__init__(self, session)
                self.onShown.append(self.__onExecCallback)
-               service = self.session.nav.getCurrentService()
-               if service:
-                       info = service.info()
-                       if info:
-                               refstr = info.getInfoString(iServiceInformation.sServiceref)
-                               self.servicelist.setPlayableIgnoreService(eServiceReference(refstr))
 
                self["actions"] = ActionMap(["OkCancelActions", "TvRadioActions", "ChannelSelectBaseActions"],
                        {
index a2c6b8f..05aaf73 100644 (file)
@@ -528,7 +528,7 @@ void eListboxServiceContent::paint(gPainter &painter, eWindowStyle &style, const
                eServiceReference ref = *m_cursor;
                bool isPlayable = !(ref.flags & eServiceReference::isDirectory || ref.flags & eServiceReference::isMarker);
 
-               if (!marked && isPlayable && service_info && !service_info->isPlayable(*m_cursor, m_is_playable_ignore))
+               if (!marked && isPlayable && service_info && m_is_playable_ignore.valid() && !service_info->isPlayable(*m_cursor, m_is_playable_ignore))
                {
                        if (m_color_set[serviceNotAvail])
                                painter.setForegroundColor(m_color[serviceNotAvail]);