From 88f31b8a8dd502c50c8873f4fd5aea3c20ce3274 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 14 Apr 2013 13:03:12 +0200 Subject: [PATCH] reloadchannels: make sure that channel flags are updated when reloading Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/80c5185bbb99762396505230619ea2b78ab61808 Author: Stefan Seyfried Date: 2013-04-14 (Sun, 14 Apr 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/scan_setup.cpp | 3 +++ src/neutrino.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index b8562c025..c8052ead9 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -282,6 +282,9 @@ int CScanSetup::exec(CMenuTarget* parent, const std::string &actionKey) printf("[neutrino] CScanSetup::%s reloadchannels...\n", __FUNCTION__); if (reloadhintBox) 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(); if (reloadhintBox) reloadhintBox->hide(); diff --git a/src/neutrino.cpp b/src/neutrino.cpp index d3c9b2bda..490e24e24 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -2498,6 +2498,7 @@ _repeat: //g_Zapit->saveBouquets(); /* lets do it in sync */ reloadhintBox->paint(); + CServiceManager::getInstance()->SaveServices(true, true); g_bouquetManager->saveBouquets(); g_bouquetManager->saveUBouquets(); g_bouquetManager->renumServices();