aboutsummaryrefslogtreecommitdiffstats
path: root/lib/isodumper.py
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2018-10-10 14:53:25 +0200
committerPapoteur <papoteur@mageia.org>2018-10-10 14:53:25 +0200
commit5c5ff86d101c90bff53062f2d52ad16523f13095 (patch)
treeabc06f94a31daa02977d4996e28a7fa132d91a80 /lib/isodumper.py
parentab2638828a1f80f3c2cae77d313d071ae8811428 (diff)
downloadisodumper-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/isodumper.py')
-rwxr-xr-xlib/isodumper.py9
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()