don't allow exiting the ipkg screen while ipkg is running
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 19 Dec 2006 07:38:28 +0000 (07:38 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 19 Dec 2006 07:38:28 +0000 (07:38 +0000)
lib/python/Screens/Ipkg.py

index 95bf4f1..af80e00 100644 (file)
@@ -96,4 +96,5 @@ class Ipkg(Screen):
                        self.runNextCmd()
        
        def exit(self):
-               self.close()
+               if not self.ipkg.isRunning():
+                       self.close()