mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
Revert "src/gui/channellist.cpp: fix to eb9cc7950d
if more bouquets empty"
This reverts commitb212f46c3d
. a better solution without duplicating code is available Origin commit data ------------------ Commit:8ba673497e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de> Date: 2013-04-06 (Sat, 06 Apr 2013)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user