svn: r7952
This commit is contained in:
parent
45bb195ba6
commit
3a3f501715
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user