1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00

Fixed disabled filters zeroing.

This commit is contained in:
Rolf Ahrenberg 2007-10-10 20:54:58 +00:00
parent 2cebe2577f
commit eba2e3ba43

View File

@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: setup.c,v 1.28 2007/10/09 16:37:16 rahrenbe Exp $
* $Id: setup.c,v 1.29 2007/10/10 20:54:58 rahrenbe Exp $
*/
#include <string.h>
@ -630,7 +630,7 @@ eOSState cIptvPluginSetup::ProcessKey(eKeys Key)
}
}
if ((Key != kNone) && ((numDisabledFilters != oldNumDisabledFilters) || (sectionFiltering != oldsectionFiltering))) {
while (numDisabledFilters && (numDisabledFilters < oldNumDisabledFilters))
while ((numDisabledFilters < oldNumDisabledFilters) && (oldNumDisabledFilters > 0))
disabledFilterIndexes[--oldNumDisabledFilters] = -1;
Setup();
}