From 5b6b20aca48ea9b9be4b534f127a4989d650fdae Mon Sep 17 00:00:00 2001 From: papoteur-mga Date: Sat, 23 Nov 2013 19:20:56 +0100 Subject: Correction to the extraction of the name of the device. --- lib/isodumper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isodumper.py b/lib/isodumper.py index aa92964..81843f8 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -110,10 +110,11 @@ class IsoDumper: combo.set_sensitive(False) self.chooser.set_sensitive(False) source = self.chooser.get_filename() - target = self.dev.split('(')[1].rstrip(')') + target = self.dev.split('(')[1].split(')')[0] dialog = self.wTree.get_widget("confirm_dialog") self.logger(_('Image: ')+source) self.logger(_('Target Device: ')+self.dev) + self.logger(_('Target Device: ')+target) b = os.path.getsize(source) if b >= (eval(self.deviceSize)) : self.logger(_('The device is too small to contain the ISO file.')) -- cgit v1.2.1