* src/ReadXML.py, src/plugins/Check.py, src/plugins/WriteCD.py,

src/plugins/WritePkg.py: Proper use of dialog.run() in file
selector for missing media files.


svn: r1680
This commit is contained in:
Alex Roitman
2003-06-10 00:00:05 +00:00
parent c7f705a048
commit f342e1edea
5 changed files with 13 additions and 12 deletions

View File

@@ -211,11 +211,10 @@ class PackageWriter:
def select_clicked():
# File is lost => select a file to replace the lost one
def fs_close_window(obj):
fs_top.destroy()
pass
def fs_ok_clicked(obj):
newfile = fs_top.get_filename()
fs_top.destroy()
if os.path.isfile(newfile):
self.copy_file(newfile,'burn:///%s/%s' % (base,obase))
ntype = Utils.get_mime_type(newfile)
@@ -226,8 +225,8 @@ class PackageWriter:
fs_top.hide_fileop_buttons()
fs_top.ok_button.connect('clicked',fs_ok_clicked)
fs_top.cancel_button.connect('clicked',fs_close_window)
fs_top.show()
fs_top.run()
fs_top.destroy()
#----------------------------------------------------------