mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
src/gui/timerlist.cpp dont check empty timerlist
This commit is contained in:
@@ -1377,16 +1377,18 @@ void CTimerList::paintHead()
|
|||||||
|
|
||||||
void CTimerList::paintFoot()
|
void CTimerList::paintFoot()
|
||||||
{
|
{
|
||||||
CTimerd::responseGetTimer* timer=&timerlist[selected];
|
if(!timerlist.empty() )
|
||||||
if (timer != NULL)
|
|
||||||
{
|
{
|
||||||
|
CTimerd::responseGetTimer* timer=&timerlist[selected];
|
||||||
|
if (timer != NULL)
|
||||||
|
{
|
||||||
//replace info button with dummy if timer is not type REC or ZAP
|
//replace info button with dummy if timer is not type REC or ZAP
|
||||||
if (timer->eventType == CTimerd::TIMER_RECORD || timer->eventType == CTimerd::TIMER_REMOTEBOX || timer->eventType == CTimerd::TIMER_ZAPTO)
|
if (timer->eventType == CTimerd::TIMER_RECORD || timer->eventType == CTimerd::TIMER_REMOTEBOX || timer->eventType == CTimerd::TIMER_ZAPTO)
|
||||||
TimerListButtons[4].button = NEUTRINO_ICON_BUTTON_INFO_SMALL;
|
TimerListButtons[4].button = NEUTRINO_ICON_BUTTON_INFO_SMALL;
|
||||||
else
|
else
|
||||||
TimerListButtons[4].button = NEUTRINO_ICON_BUTTON_DUMMY_SMALL;
|
TimerListButtons[4].button = NEUTRINO_ICON_BUTTON_DUMMY_SMALL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//shadow
|
//shadow
|
||||||
frameBuffer->paintBoxRel(x + OFFSET_SHADOW, y + height - footerHeight, width, footerHeight + OFFSET_SHADOW, COL_SHADOW_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);
|
frameBuffer->paintBoxRel(x + OFFSET_SHADOW, y + height - footerHeight, width, footerHeight + OFFSET_SHADOW, COL_SHADOW_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user