Neutrino: Channel list: add method isEmpty() and use it, ported from tuxbox cvs (THX Gaucho316)

This commit is contained in:
satbaby
2012-10-20 13:20:49 +02:00
parent 1e88eee2d9
commit 35138088e3
4 changed files with 19 additions and 13 deletions

View File

@@ -498,7 +498,7 @@ int CBouquetList::show(bool bShowChannelList)
}
else if ( msg == CRCInput::RC_ok ) {
if(!bShowChannelList || Bouquets[selected]->channelList->getSize() > 0) {
if(!bShowChannelList || !Bouquets[selected]->channelList->isEmpty()) {
zapOnExit = true;
loop=false;
}
@@ -577,7 +577,7 @@ void CBouquetList::paintItem(int pos)
CVFD::getInstance()->showMenuText(0, lname, -1, true);
} else {
if(npos < (int) Bouquets.size())
iscurrent = Bouquets[npos]->channelList->getSize() > 0;
iscurrent = !Bouquets[npos]->channelList->isEmpty();
color = iscurrent ? COL_MENUCONTENT : COL_MENUCONTENTINACTIVE;
bgcolor = iscurrent ? COL_MENUCONTENT_PLUS_0 : COL_MENUCONTENTINACTIVE_PLUS_0;
frameBuffer->paintBoxRel(x, ypos, width- 15, fheight, bgcolor);