diff options
Diffstat (limited to 'lib/isodumper.py')
-rw-r--r-- | lib/isodumper.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index 23a84d2..cf45c83 100644 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -182,6 +182,7 @@ class IsoDumper(object): else: return False break + self.devicelist.addItem("",False) if len(self.list)>0: for name, path, size in self.list: # convert in Mbytes @@ -303,7 +304,6 @@ class IsoDumper(object): def do_write(self): -# write_button = self.wTree.get_widget("write_button") self.writebt.setDisabled() self.devicelist.setDisabled() self.formatbt.setDisabled() @@ -312,8 +312,8 @@ class IsoDumper(object): self.progress.setEnabled() source = self.img_name target = self.dev.split('(')[1].split(')')[0] - self.logger(_('Image: ')+source) - self.logger(_('Target Device: ')+self.dev) +# self.logger(_('Image: ')+source) +# self.logger(_('Target Device: ')+self.dev) b = os.path.getsize(source) if b > (self.deviceSize): message = _('The device is too small to contain the ISO file.') @@ -797,14 +797,17 @@ The fields of the main window are as follows:\n\ self.activate_devicelist() if event.widget() == self.writebt: + self.device_selected() self.do_write() if event.widget() == self.backupbt: + self.device_selected() self.backup_go() if event.widget() == self.backup_select: self.backup_img_name=yui.YUI.app().askForSaveFileName('file:///home/'+self.user,"*.img","Backup to:") if self.backup_img_name != '': self.backup_choosed() if event.widget() == self.formatbt: + self.device_selected() code,format_type,name = self.ask_format() if code: self.do_format(format_type,name) |