diff options
-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() |