svn: r7952

This commit is contained in:
Don Allingham 2007-01-22 04:59:23 +00:00
parent 2406378435
commit b943028eb9

View File

@ -175,8 +175,10 @@ class AddMediaObject(ManagedWindow.ManagedWindow):
see if the file exists. If it does, the imgae is loaded into see if the file exists. If it does, the imgae is loaded into
the preview window. the preview window.
""" """
filename = unicode(self.file_text.get_filename(), fn = self.file_text.get_filename()
sys.getfilesystemencoding()) if not fn:
return
filename = unicode(fn, sys.getfilesystemencoding())
basename = os.path.basename(filename) basename = os.path.basename(filename)
(root,ext) = os.path.splitext(basename) (root,ext) = os.path.splitext(basename)
old_title = unicode(self.description.get_text()) old_title = unicode(self.description.get_text())