diff options
Diffstat (limited to 'lib/isodumper.py')
-rwxr-xr-x | lib/isodumper.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index 540b0b1..9e68e3f 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -417,7 +417,7 @@ class IsoDumper(object): self.progress.setValue(progress) self.dialog.pollEvent() time.sleep(.5) - success, message = iface.end() + nowarning, message = iface.end() self.progress.setEnabled() self.logger(message) # Add persistent partition if asked @@ -455,7 +455,10 @@ class IsoDumper(object): self.udev_wait(_("unmounting")) if success: self.u.eject(target) - self.success() + if nowarning : + self.success() + else: + self.warning() else: self.emergency(message) self.restore() @@ -477,6 +480,16 @@ class IsoDumper(object): if self.ask_OK(info): return + def warning(self): + self.operation = False + self.final_unsensitive() + info = Info(_("Warning"), True, _("The operation completed, but with anomalies.\n\ + Check carefully the messages in log view.\n\ + You are free to unplug it now, a logfile \n\ +(/home/-user- or /root)/.isodumper/isodumper.log will be saved when\n\ + you close the application.")) + if self.ask_OK(info): + return def confirm_close(self, *args): if not self.operation: # no writing , backup nor format running self.close() |