Revert "src/gui/channellist.cpp: fix to 36e95d7fbc if more bouquets empty"

This reverts commit f4ae5e17ce.

a better solution without duplicating code is available
This commit is contained in:
Stefan Seyfried
2013-04-06 13:33:29 +02:00
parent 6fa592323b
commit 8ba673497e

View File

@@ -749,21 +749,11 @@ int CChannelList::show()
if(bouquetList->Bouquets[nNext]->channelList->isEmpty() ) {
found = false;
nNext = (nNext + b_size + dir) % b_size;
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;
}
for (int i = nNext; i < b_size; i++) {
if( !bouquetList->Bouquets[i]->channelList->isEmpty() ) {
found = true;
nNext = i;
break;
}
}
}