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:
		@@ -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>
 | 
			
		||||
	* src/plugins/all_relations.py: english issues
 | 
			
		||||
	* src/Relationship.py: english issues
 | 
			
		||||
 
 | 
			
		||||
@@ -135,8 +135,13 @@ class AddMediaObject(ManagedWindow.ManagedWindow):
 | 
			
		||||
            mobj.set_handle(Utils.create_id())
 | 
			
		||||
            mobj.set_mime_type(None)
 | 
			
		||||
        else:
 | 
			
		||||
            filename = unicode(self.file_text.get_filename(), 
 | 
			
		||||
                               sys.getfilesystemencoding())
 | 
			
		||||
            if self.file_text.get_filename() is None:
 | 
			
		||||
                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
 | 
			
		||||
 | 
			
		||||
            if self.relpath.get_active():
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user