From 38bfd5899666c20c8ed1e0daa3536e578278fd23 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 28 May 2011 21:42:42 +0000 Subject: [PATCH] neutrino scan_setup: fix double entries in satlist It was necessary to clean satlist in 'addScanMenuAutoScanAll()', because of multiple generated options in satlist, This ensures that we have a clean list before we add new options. thx SatBaby for hint git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1497 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/82be0b9f10ed9f78387fab9c04e8585a2945686b Author: Thilo Graf Date: 2011-05-28 (Sat, 28 May 2011) Origin message was: ------------------ *neutrino scan_setup: fix double entries in satlist It was necessary to clean satlist in 'addScanMenuAutoScanAll()', because of multiple generated options in satlist, This ensures that we have a clean list before we add new options. thx SatBaby for hint git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1497 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/gui/scan_setup.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index c5b1cdb96..950890f24 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -642,6 +642,9 @@ void CScanSetup::addScanMenuAutoScanAll(CMenuWidget *auto_ScanAll) CMenuWidget* satInUse = new CMenuWidget(satprov_locale, NEUTRINO_ICON_SETTINGS, width); satInUse->addIntroItems(); + //ensure, that we have no double options in satlist + satSelect->removeOptions(); + for (sit = satellitePositions.begin(); sit != satellitePositions.end(); sit++) { /* printf("Adding sat menu for %s position %d\n", sit->second.name.c_str(), sit->first); */