Merge branch 'master' of git.opendreambox.org:/git/enigma2
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 23 Mar 2009 21:53:19 +0000 (22:53 +0100)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 23 Mar 2009 21:53:19 +0000 (22:53 +0100)
lib/python/Components/Harddisk.py

index 37905b7d70ee03f5af70dfc5d9babc3a82010cb5..ad6c1a3b46e5f3f752ebe08e5845b4fa8acfd427 100755 (executable)
@@ -455,11 +455,10 @@ class HarddiskManager:
                                self.on_partition_list_change("remove", x)
                l = len(device)
                if l and not device[l-1].isdigit():
-                       idx = 0
                        for hdd in self.hdd:
                                if hdd.device == device:
-                                       self.hdd[x].stop()
-                                       del self.hdd[idx]
+                                       hdd.stop()
+                                       self.hdd.remove(hdd)
                                        break
                        SystemInfo["Harddisk"] = len(self.hdd) > 0