diff options
Diffstat (limited to 'fiv-collection.c')
-rw-r--r-- | fiv-collection.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fiv-collection.c b/fiv-collection.c index 13548b9..6878898 100644 --- a/fiv-collection.c +++ b/fiv-collection.c @@ -528,12 +528,16 @@ fiv_collection_file_query_info(GFile *file, const char *attributes, g_file_info_set_name(info, basename); g_free(basename); - if ((name = g_file_info_get_display_name(info))) { + if (g_file_info_has_attribute( + info, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME) && + (name = g_file_info_get_display_name(info))) { gchar *prefixed = get_prefixed_name(self, name); g_file_info_set_display_name(info, prefixed); g_free(prefixed); } - if ((name = g_file_info_get_edit_name(info))) { + if (g_file_info_has_attribute( + info, G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME) && + (name = g_file_info_get_edit_name(info))) { gchar *prefixed = get_prefixed_name(self, name); g_file_info_set_edit_name(info, prefixed); g_free(prefixed); |