2007-11-07 Benny Malengier <benny.malengier@gramps-project.org>
* src/AddMedia.py: media crash, fix issue #1349, change unicode to Utils svn: r9316
This commit is contained in:
parent
9147ed2a9a
commit
070be15e0d
@ -1,3 +1,6 @@
|
|||||||
|
2007-11-07 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
|
* src/AddMedia.py: media crash, fix issue #1349, change unicode to Utils
|
||||||
|
|
||||||
2007-11-06 Benny Malengier <benny.malengier@gramps-project.org>
|
2007-11-06 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
* src/plugins/all_relations.py: english issues
|
* src/plugins/all_relations.py: english issues
|
||||||
* src/Relationship.py: english issues
|
* src/Relationship.py: english issues
|
||||||
|
@ -135,8 +135,13 @@ class AddMediaObject(ManagedWindow.ManagedWindow):
|
|||||||
mobj.set_handle(Utils.create_id())
|
mobj.set_handle(Utils.create_id())
|
||||||
mobj.set_mime_type(None)
|
mobj.set_mime_type(None)
|
||||||
else:
|
else:
|
||||||
filename = unicode(self.file_text.get_filename(),
|
if self.file_text.get_filename() is None:
|
||||||
sys.getfilesystemencoding())
|
msgstr = _("Import failed")
|
||||||
|
msgstr2 = _("The filename supplied could not be found.")
|
||||||
|
ErrorDialog(msgstr, msgstr2)
|
||||||
|
return
|
||||||
|
|
||||||
|
filename = Utils.get_unicode_path(self.file_text.get_filename())
|
||||||
full_file = filename
|
full_file = filename
|
||||||
|
|
||||||
if self.relpath.get_active():
|
if self.relpath.get_active():
|
||||||
|
Loading…
Reference in New Issue
Block a user