mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
src/gui/channellist.cpp: fix to 36e95d7fbc
if more bouquets empty
This commit is contained in:
committed by
[CST] Focus
parent
cecbd13107
commit
25653df890
@@ -745,11 +745,21 @@ int CChannelList::show()
|
||||
if(bouquetList->Bouquets[nNext]->channelList->isEmpty() ) {
|
||||
found = false;
|
||||
nNext = (nNext + b_size + dir) % b_size;
|
||||
for (int i = nNext; i < b_size; i++) {
|
||||
if( !bouquetList->Bouquets[i]->channelList->isEmpty() ) {
|
||||
found = true;
|
||||
nNext = i;
|
||||
break;
|
||||
if(msg == (neutrino_msg_t)g_settings.key_bouquet_down){
|
||||
for (int i = nNext; i > 0; i--) {
|
||||
if( !bouquetList->Bouquets[i]->channelList->isEmpty() ) {
|
||||
found = true;
|
||||
nNext = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
for (int i = nNext; i < b_size; i++) {
|
||||
if( !bouquetList->Bouquets[i]->channelList->isEmpty() ) {
|
||||
found = true;
|
||||
nNext = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user