mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
src/gui/channellist.cpp: fix to 06ac21d495
if more bouquets empty
Origin commit data
------------------
Branch: ni/coolstream
Commit: f4ae5e17ce
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-03-27 (Wed, 27 Mar 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -749,11 +749,21 @@ int CChannelList::show()
|
|||||||
if(bouquetList->Bouquets[nNext]->channelList->isEmpty() ) {
|
if(bouquetList->Bouquets[nNext]->channelList->isEmpty() ) {
|
||||||
found = false;
|
found = false;
|
||||||
nNext = (nNext + b_size + dir) % b_size;
|
nNext = (nNext + b_size + dir) % b_size;
|
||||||
for (int i = nNext; i < b_size; i++) {
|
if(msg == (neutrino_msg_t)g_settings.key_bouquet_down){
|
||||||
if( !bouquetList->Bouquets[i]->channelList->isEmpty() ) {
|
for (int i = nNext; i > 0; i--) {
|
||||||
found = true;
|
if( !bouquetList->Bouquets[i]->channelList->isEmpty() ) {
|
||||||
nNext = i;
|
found = true;
|
||||||
break;
|
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