From 9d4b1d17a8e5d2fee7a927fb4b43b8674b0b84c8 Mon Sep 17 00:00:00 2001 From: papoteur-mga Date: Sat, 23 Nov 2013 13:41:03 +0100 Subject: Correction for a bug in dialog loops. --- lib/isodumper.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/isodumper.py b/lib/isodumper.py index 1bdf312..aa92964 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -126,14 +126,15 @@ class IsoDumper: message.set_text(_('The device is bigger than 32 Gbytes. Are you sure you want use it?')) resp = dialog.run() if resp: - self.do_umount(target) - dialog.hide() - task = self.raw_write(source, target) - gobject.idle_add(task.next) - while gtk.events_pending(): - gtk.main_iteration(True) + pass else: self.close('dummy') + self.do_umount(target) + dialog.hide() + task = self.raw_write(source, target) + gobject.idle_add(task.next) + while gtk.events_pending(): + gtk.main_iteration(True) else: self.close('dummy') -- cgit v1.2.1