reloadchannels: make sure that channel flags are updated when reloading

This commit is contained in:
Stefan Seyfried
2013-04-14 13:03:12 +02:00
parent 3ea3f17460
commit 80c5185bbb
2 changed files with 4 additions and 0 deletions

View File

@@ -282,6 +282,9 @@ int CScanSetup::exec(CMenuTarget* parent, const std::string &actionKey)
printf("[neutrino] CScanSetup::%s reloadchannels...\n", __FUNCTION__); printf("[neutrino] CScanSetup::%s reloadchannels...\n", __FUNCTION__);
if (reloadhintBox) if (reloadhintBox)
reloadhintBox->paint(); reloadhintBox->paint();
/* save if changed, to make sure NEW/REMOVED/... flags are updated */
CServiceManager::getInstance()->SaveServices(true, true);
/* Z->reinitChannels triggers EVT_SERVICESCHANGED and this triggers channelsInit() */
g_Zapit->reinitChannels(); g_Zapit->reinitChannels();
if (reloadhintBox) if (reloadhintBox)
reloadhintBox->hide(); reloadhintBox->hide();

View File

@@ -2498,6 +2498,7 @@ _repeat:
//g_Zapit->saveBouquets(); //g_Zapit->saveBouquets();
/* lets do it in sync */ /* lets do it in sync */
reloadhintBox->paint(); reloadhintBox->paint();
CServiceManager::getInstance()->SaveServices(true, true);
g_bouquetManager->saveBouquets(); g_bouquetManager->saveBouquets();
g_bouquetManager->saveUBouquets(); g_bouquetManager->saveUBouquets();
g_bouquetManager->renumServices(); g_bouquetManager->renumServices();