mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
zapit/src/femanager.cpp: clear config and frontend sat map before loading settings
This commit is contained in:
@@ -158,6 +158,7 @@ bool CFEManager::getSatelliteConfig(CFrontend * fe, sat_config_t &satconfig)
|
|||||||
bool CFEManager::loadSettings()
|
bool CFEManager::loadSettings()
|
||||||
{
|
{
|
||||||
config_exist = true;
|
config_exist = true;
|
||||||
|
configfile.clear();
|
||||||
if (!configfile.loadConfig(FECONFIGFILE)) {
|
if (!configfile.loadConfig(FECONFIGFILE)) {
|
||||||
WARN("%s not found", FECONFIGFILE);
|
WARN("%s not found", FECONFIGFILE);
|
||||||
config_exist = false;
|
config_exist = false;
|
||||||
@@ -187,6 +188,7 @@ bool CFEManager::loadSettings()
|
|||||||
sprintf(cfg_key, "fe%d_satellites", fe->fenumber);
|
sprintf(cfg_key, "fe%d_satellites", fe->fenumber);
|
||||||
std::vector<int> satList = configfile.getInt32Vector(cfg_key);
|
std::vector<int> satList = configfile.getInt32Vector(cfg_key);
|
||||||
satellite_map_t & satmap = fe->getSatellites();
|
satellite_map_t & satmap = fe->getSatellites();
|
||||||
|
satmap.clear();
|
||||||
#if 0
|
#if 0
|
||||||
for(unsigned int i = 0; i < satList.size(); i++)
|
for(unsigned int i = 0; i < satList.size(); i++)
|
||||||
t_satellite_position position = satList[i];
|
t_satellite_position position = satList[i];
|
||||||
|
Reference in New Issue
Block a user