aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2017-01-02 08:47:57 +0100
committerPapoteur <papoteur@mageialinux-online.org>2017-01-02 08:47:57 +0100
commit65773271e4ff90909aca07e834b225be2f5ba1ff (patch)
treeb5ea12c59366d35b08ab6ddec0a77622eb2a875b
parent6bd836f42a2d8ae4fe74a602eb653f3b108c8bb7 (diff)
downloadisodumper-65773271e4ff90909aca07e834b225be2f5ba1ff.tar
isodumper-65773271e4ff90909aca07e834b225be2f5ba1ff.tar.gz
isodumper-65773271e4ff90909aca07e834b225be2f5ba1ff.tar.bz2
isodumper-65773271e4ff90909aca07e834b225be2f5ba1ff.tar.xz
isodumper-65773271e4ff90909aca07e834b225be2f5ba1ff.zip
Redraw the dialog box when name of image is changed (mga#19916)
-rwxr-xr-xlib/isodumper.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 765adff..0d5e0d4 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -142,6 +142,7 @@ class IsoDumper(object):
self.img_name = ""
self.ima.setLabel(self.ChooseImage)
self.backup_select.setLabel(self.ChooseImage)
+ self.dialog.recalcLayout()
self.restore()
def device_selected(self):
@@ -172,6 +173,7 @@ class IsoDumper(object):
head, tail = os.path.split(self.backup_img_name)
self.backup_dest=self.backup_img_name
self.backup_select.setLabel(tail)
+ self.dialog.recalcLayout()
self.backupbt.setEnabled()
#self.backup_select.set_tooltip_text(self.backup_img_name)
self.logger(_('Backup to: ')+ self.backup_img_name)
@@ -758,7 +760,8 @@ 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('file:///home/'+self.user,"*.iso *.img","Choose an image")
- self.ima.setLabel(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: