bugfix for cancelling
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>
Sun, 12 Oct 2008 17:25:15 +0000 (17:25 +0000)
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>
Sun, 12 Oct 2008 17:25:15 +0000 (17:25 +0000)
lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py

index 5a95d3fd3f937000ca19c8e3a1746bfac2e16ecd..036523a4065e0db770aeb0cdf0bdcf8451812282 100644 (file)
@@ -469,7 +469,7 @@ class NFIDownload(Screen):
                print "[flasherdownload_failed] " + error_message
                message = "%s %s" % (_("Download of USB flasher boot image failed: "),error_message)
                self.session.open(MessageBox, message, MessageBox.TYPE_ERROR)
                print "[flasherdownload_failed] " + error_message
                message = "%s %s" % (_("Download of USB flasher boot image failed: "),error_message)
                self.session.open(MessageBox, message, MessageBox.TYPE_ERROR)
-               self.query_remove_img(True)
+               self.remove_img(True)
 
        def flasherdownload_finished(self, string=""):
                print "[flasherdownload_finished] " + str(string)       
 
        def flasherdownload_finished(self, string=""):
                print "[flasherdownload_finished] " + str(string)       
@@ -555,7 +555,7 @@ class NFIDownload(Screen):
                        self.delayTimer.callback.append(self.progress_increment)
                        self.delayTimer.start(105, False)
                else:
                        self.delayTimer.callback.append(self.progress_increment)
                        self.delayTimer.start(105, False)
                else:
-                       self.remove_img()
+                       self.remove_img(True)
 
        def fdisk_finished(self, retval):
                self.container.appClosed.get().remove(self.fdisk_finished)
 
        def fdisk_finished(self, retval):
                self.container.appClosed.get().remove(self.fdisk_finished)