diff options
Diffstat (limited to 'src/eom-list-store.c')
| -rw-r--r-- | src/eom-list-store.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eom-list-store.c b/src/eom-list-store.c index 9336614..ae7f83b 100644 --- a/src/eom-list-store.c +++ b/src/eom-list-store.c @@ -477,7 +477,8 @@ directory_visit (GFile *directory, if (!g_str_has_prefix (name, ".")) { /* We support opening any image type, so let eom to add any images in the current directory to the store */ - if (g_content_type_is_mime_type (mime_type, "image/*") || eom_image_is_supported_mime_type (mime_type)) { + if (mime_type != NULL && + (g_content_type_is_mime_type (mime_type, "image/*") || eom_image_is_supported_mime_type (mime_type))) { load_uri = TRUE; } } |
