diff options
author | Papoteur <papoteur@mageia.org> | 2018-10-10 14:53:25 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2018-10-10 14:53:25 +0200 |
commit | 5c5ff86d101c90bff53062f2d52ad16523f13095 (patch) | |
tree | abc06f94a31daa02977d4996e28a7fa132d91a80 /lib | |
parent | ab2638828a1f80f3c2cae77d313d071ae8811428 (diff) | |
download | isodumper-5c5ff86d101c90bff53062f2d52ad16523f13095.tar isodumper-5c5ff86d101c90bff53062f2d52ad16523f13095.tar.gz isodumper-5c5ff86d101c90bff53062f2d52ad16523f13095.tar.bz2 isodumper-5c5ff86d101c90bff53062f2d52ad16523f13095.tar.xz isodumper-5c5ff86d101c90bff53062f2d52ad16523f13095.zip |
Manage cancellation for select image dialog
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/isodumper.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index d0d9aa5..4978681 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -629,10 +629,11 @@ NTFS or ext. You can specify a volume name and the format in a new dialog box.<B break if event.widget() == self.ima: self.img_name=yui.YUI.app().askForExistingFile("","*.iso *.img",self.ChooseImage) - self.ima.setLabel(os.path.basename(self.img_name)) - self.dialog.recalcLayout() - self.writebt.setEnabled() - self.activate_devicelist() + if self.img_name != "" : + self.ima.setLabel(os.path.basename(self.img_name)) + self.dialog.recalcLayout() + self.writebt.setEnabled() + self.activate_devicelist() if event.widget() == self.writebt: self.wip_unsensitive() self.do_write() |