mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
channellist: fix 2 forgotten cases of fixed plock_zaptime
Origin commit data
------------------
Branch: ni/coolstream
Commit: ec12b704cb
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -348,16 +348,17 @@ int CChannelList::doChannelMenu(void)
|
|||||||
switch(select) {
|
switch(select) {
|
||||||
case 0: // edit mode
|
case 0: // edit mode
|
||||||
if (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_CHANGETOLOCKED) {
|
if (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_CHANGETOLOCKED) {
|
||||||
|
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) {
|
||||||
unlocked = false;
|
unlocked = false;
|
||||||
} else if (bouquet && bouquet->zapitBouquet && bouquet->zapitBouquet->bLocked) {
|
} else if (bouquet && bouquet->zapitBouquet && bouquet->zapitBouquet->bLocked) {
|
||||||
/* on locked bouquet, enough to check any channel */
|
/* on locked bouquet, enough to check any channel */
|
||||||
unlocked = ((*chanlist)[selected]->last_unlocked_time + 3600 > time_monotonic());
|
unlocked = ((*chanlist)[selected]->last_unlocked_time + pl_z > time_monotonic());
|
||||||
} else {
|
} else {
|
||||||
/* check all locked channels for last_unlocked_time, overwrite only if already unlocked */
|
/* check all locked channels for last_unlocked_time, overwrite only if already unlocked */
|
||||||
for (unsigned int j = 0 ; j < (*chanlist).size(); j++) {
|
for (unsigned int j = 0 ; j < (*chanlist).size(); j++) {
|
||||||
if ((*chanlist)[j]->bLocked)
|
if ((*chanlist)[j]->bLocked)
|
||||||
unlocked = unlocked && ((*chanlist)[j]->last_unlocked_time + 3600 > time_monotonic());
|
unlocked = unlocked && ((*chanlist)[j]->last_unlocked_time + pl_z > time_monotonic());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!unlocked) {
|
if (!unlocked) {
|
||||||
|
Reference in New Issue
Block a user