ton't traceback when showing tooltip of a filetransfer without description

This commit is contained in:
Yann Leboulanger 2007-11-28 22:47:33 +00:00
parent dc4d6b7a6d
commit 89f778fb94
1 changed files with 4 additions and 2 deletions

View File

@ -627,8 +627,10 @@ class FileTransfersTooltip(BaseTooltip):
else:
status = _('Not started')
properties.append((_('Status: '), status))
file_desc = file_props['desc']
properties.append((_('Description: '), gobject.markup_escape_text(file_desc)))
if 'desc' in file_props:
file_desc = file_props['desc']
properties.append((_('Description: '), gobject.markup_escape_text(
file_desc)))
while properties:
property = properties.pop(0)
current_row += 1