aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/isodumper.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index cf45c83..a18995c 100644
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -204,12 +204,10 @@ class IsoDumper(object):
if self.dev.startswith(name):
self.deviceSize=size
self.device_name=name.rstrip().replace(' ', '')
+ self.logger(_('Target Device: ')+ self.dev)
break
self.formatbt.setEnabled()
self.ima.setEnabled()
-# if self.chooser.get_current_folder_uri() == None :
-# self.chooser.set_current_folder_uri('file:///home/'+self.user)
- self.logger(_('Target Device: ')+ self.dev)
def backup_sel(self,widget):
if self.backup_bname.get_current_folder_uri() == None :
@@ -304,6 +302,7 @@ class IsoDumper(object):
def do_write(self):
+ self.returncode = 0
self.writebt.setDisabled()
self.devicelist.setDisabled()
self.formatbt.setDisabled()
@@ -339,8 +338,8 @@ class IsoDumper(object):
self.returncode=0
b=os.path.getsize(source)
self.raw_write(source, target, b)
- self.check_write(target, b)
if self.returncode == 0:
+ self.check_write(target, b)
self.success()
else:
self.restore()