diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-11-23 21:07:18 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-11-23 21:07:18 +0000 |
| commit | baf703d44c2fdb3bb754ca8dca2ff1e2c619a2bc (patch) | |
| tree | 340f1dc798b49e8ae66079505f631881b97d999b /lib | |
| parent | 1a709b96911d0865c97e5aa9bd1adbe20f3ef7c0 (diff) | |
| download | enigma2-baf703d44c2fdb3bb754ca8dca2ff1e2c619a2bc.tar.gz enigma2-baf703d44c2fdb3bb754ca8dca2ff1e2c619a2bc.zip | |
reload bouquetlist when a new bouquet is added and the bouquet root is
visible in servicelist
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/Screens/ChannelSelection.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index d0c9e305..4430edd0 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -90,7 +90,7 @@ class ChannelContextMenu(Screen): else: if haveBouquets: if not inBouquet and current_sel_path.find("PROVIDERS") == -1: - menu.append((_("copy to favourites"), self.copyCurrentToBouquetList)) + menu.append((_("copy to bouquets"), self.copyCurrentToBouquetList)) if current_sel_path.find("flags == %d" %(FLAG_SERVICE_NEW_FOUND)) != -1: menu.append((_("remove all new found flags"), self.removeAllNewFoundFlags)) if inBouquet: @@ -338,6 +338,13 @@ class ChannelSelectionEdit: mutableBouquet.flushChanges() else: print "get mutable list for new created bouquet failed" + # do some voodoo to check if current_root is equal to bouquet_root + cur_root = self.getRoot(); + str1 = cur_root.toString() + pos1 = str1.find("FROM BOUQUET") + pos2 = self.bouquet_rootstr.find("FROM BOUQUET") + if pos1 != -1 and pos2 != -1 and str1[pos1:] == self.bouquet_rootstr[pos2:]: + self.setMode() #reload else: print "add", str, "to bouquets failed" else: |
