remove debug
[enigma2.git] / lib / python / Screens / Menu.py
index 19b36045cb1c4cb745911de540975d64cf1f1a19..7c084d4547738f334f424bf57a745020bd18f627 100644 (file)
@@ -194,8 +194,13 @@ class Menu(Screen):
                if menuID is not None:
                        # plugins
                        for l in plugins.getPluginsForMenu(menuID):
+                               # check if a plugin overrides an existing menu
+                               plugin_menuid = l[2]
+                               for x in list:
+                                       if x[2] == plugin_menuid:
+                                               list.remove(x)
+                                               break
                                list.append((l[0], boundFunction(l[1], self.session), l[2], l[3] or 50))
-                                       
 
                # for the skin: first try a menu_<menuID>, then Menu
                self.skinName = [ ]