escape filename (in case they contain _). Fixes #1897
This commit is contained in:
parent
933d84ebd3
commit
f3457a8f0c
|
@ -303,7 +303,8 @@ _('Connection with peer cannot be established.'))
|
||||||
file requested by a contact'''
|
file requested by a contact'''
|
||||||
if file_props is None or not file_props.has_key('name'):
|
if file_props is None or not file_props.has_key('name'):
|
||||||
return
|
return
|
||||||
sec_text = '\t' + _('File: %s') % file_props['name']
|
file_name = gtkgui_helpers.escape_for_pango_markup(file_props['name'])
|
||||||
|
sec_text = '\t' + _('File: %s') % file_name
|
||||||
if file_props.has_key('size'):
|
if file_props.has_key('size'):
|
||||||
sec_text += '\n\t' + _('Size: %s') % \
|
sec_text += '\n\t' + _('Size: %s') % \
|
||||||
helpers.convert_bytes(file_props['size'])
|
helpers.convert_bytes(file_props['size'])
|
||||||
|
|
Loading…
Reference in New Issue