aboutsummaryrefslogtreecommitdiffstats
path: root/lib/isodumper.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/isodumper.py')
-rwxr-xr-xlib/isodumper.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 18e596a..fa1e8f8 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -47,8 +47,8 @@ import time
#log.setLogFileName("isodumper.log")
#log.enableDebugLogging( True )
-import os, re
-import io
+import os
+import re
import gettext
from subprocess import call, Popen, PIPE
from pydbus import SystemBus
@@ -152,13 +152,6 @@ class IsoDumper(object):
self.ima.setEnabled()
self.backup_select.setEnabled()
break
-
-
- def backup_sel(self):
- if self.backup_bname.get_current_folder_uri() == None :
- self.backup_bname.set_current_folder_uri('file://'+os.path.expanduser('~'))
- self.backup_bname.set_current_name(self.device_name+".img")
- self.choose.run()
def backup_choosed(self):
# Add .img if not specified
@@ -622,8 +615,7 @@ NTFS or ext. You can specify a volume name and the format in a new dialog box.<B
self.close()
break
if event.widget() == self.ima:
- default = 'file://'+os.path.expanduser('~')
- self.img_name=yui.YUI.app().askForExistingFile(default,"*.iso *.img",self.ChooseImage)
+ 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()
@@ -637,7 +629,7 @@ NTFS or ext. You can specify a volume name and the format in a new dialog box.<B
self.backup_go()
self.restore()
if event.widget() == self.backup_select:
- self.backup_img_name=yui.YUI.app().askForSaveFileName('file:///home/'+self.user,"*.img",_("Backup to:"))
+ self.backup_img_name=yui.YUI.app().askForSaveFileName("","*.img",_("Backup to:"))
if self.backup_img_name != '':
self.backup_choosed()
if event.widget() == self.formatbt: