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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 35138088e3
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-10-20 (Sat, 20 Oct 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-10-20 13:20:49 +02:00
parent edaeb14fc2
commit 65a0f6984b
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);