mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user