fix service/movie remove (hold cursor position when possible)
[enigma2.git] / lib / python / Screens / MovieSelection.py
index ce3a9732b2a51d9b409faa38ab04a10592b282f5..86d2547369a16b75197044b0409ad3e797686848 100644 (file)
@@ -49,9 +49,14 @@ class ChannelContextMenu(FixedMenu):
                if result == False:
                        self.session.openWithCallback(self.close, MessageBox, "Delete failed!")
                else:
-                       self.csel["list"].reload()
+                       list = self.csel["list"]
+                       currentIndex = list.getCurrentIndex()
+                       list.moveDown()
+                       if list.getCurrentIndex() == currentIndex:
+                               currentIndex -= 1
+                       list.reload()
+                       list.moveToIndex(currentIndex)
                        self.close()
-               
  
 class MovieSelection(Screen):
        def __init__(self, session):