mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
CChannelList: change scope of bool unlocked
Scope of the variable 'unlocked' can be reduced.
Origin commit data
------------------
Branch: ni/coolstream
Commit: c8f6888d8f
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-07 (Sun, 07 May 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -298,7 +298,7 @@ int CChannelList::doChannelMenu(void)
|
|||||||
int shortcut = 0;
|
int shortcut = 0;
|
||||||
static int old_selected = 0;
|
static int old_selected = 0;
|
||||||
char cnt[5];
|
char cnt[5];
|
||||||
bool unlocked = true;
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if(g_settings.minimode)
|
if(g_settings.minimode)
|
||||||
@@ -360,7 +360,8 @@ int CChannelList::doChannelMenu(void)
|
|||||||
CBouquetList *blist = tvmode ? TVfavList : RADIOfavList;
|
CBouquetList *blist = tvmode ? TVfavList : RADIOfavList;
|
||||||
bool fav_found = true;
|
bool fav_found = true;
|
||||||
switch(select) {
|
switch(select) {
|
||||||
case 0: // edit mode
|
case 0: {// edit mode
|
||||||
|
bool unlocked = true;
|
||||||
if (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_CHANGETOLOCKED) {
|
if (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_CHANGETOLOCKED) {
|
||||||
int pl_z = g_settings.parentallock_zaptime * 60;
|
int pl_z = g_settings.parentallock_zaptime * 60;
|
||||||
if (g_settings.personalize[SNeutrinoSettings::P_MSER_BOUQUET_EDIT] == CPersonalizeGui::PERSONALIZE_MODE_PIN) {
|
if (g_settings.personalize[SNeutrinoSettings::P_MSER_BOUQUET_EDIT] == CPersonalizeGui::PERSONALIZE_MODE_PIN) {
|
||||||
@@ -385,7 +386,7 @@ int CChannelList::doChannelMenu(void)
|
|||||||
editMode(true);
|
editMode(true);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
break;
|
break;
|
||||||
case 1: // add to
|
}case 1: // add to
|
||||||
if (!addChannelToBouquet())
|
if (!addChannelToBouquet())
|
||||||
return -1;
|
return -1;
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
Reference in New Issue
Block a user