diff options
author | fiaxh <git@lightrise.org> | 2018-12-29 19:15:25 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2018-12-31 16:49:22 +0100 |
commit | 446e86d4ad798655aa1a83aebc86f9f2431484df (patch) | |
tree | 85948047dcc223ad1ccf130f087fb8a2c2382a11 /main/src/ui/conversation_summary | |
parent | 420942873a595415d09c9a48b9950c214e77008b (diff) | |
download | dino-446e86d4ad798655aa1a83aebc86f9f2431484df.tar.gz dino-446e86d4ad798655aa1a83aebc86f9f2431484df.zip |
Check FileTransfer's mime_type for null (unknown) when handeling it
fixes #479
Diffstat (limited to 'main/src/ui/conversation_summary')
-rw-r--r-- | main/src/ui/conversation_summary/content_item_widget_factory.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/conversation_summary/content_item_widget_factory.vala b/main/src/ui/conversation_summary/content_item_widget_factory.vala index d8d21ebd..4a625cc5 100644 --- a/main/src/ui/conversation_summary/content_item_widget_factory.vala +++ b/main/src/ui/conversation_summary/content_item_widget_factory.vala @@ -194,7 +194,7 @@ public class FileItemWidgetGenerator : WidgetGenerator, Object { private Widget getDefaultWidget(FileTransfer file_transfer) { Box main_box = new Box(Orientation.HORIZONTAL, 4) { halign=Align.START, visible=true }; - string? icon_name = ContentType.get_generic_icon_name(file_transfer.mime_type); + string? icon_name = file_transfer.mime_type != null ? ContentType.get_generic_icon_name(file_transfer.mime_type) : null; Image content_type_image = new Image.from_icon_name(icon_name, IconSize.DND) { visible=true }; main_box.add(content_type_image); |