From c214e668d9029f05b5e2d8b1159bfdb3ac1f1b8b Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 24 Feb 2024 00:53:54 +0100 Subject: Resolve more GLib #2907 warnings --- fiv-io-model.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fiv-io-model.c') diff --git a/fiv-io-model.c b/fiv-io-model.c index 2ee1002..3309702 100644 --- a/fiv-io-model.c +++ b/fiv-io-model.c @@ -247,7 +247,9 @@ static GPtrArray * model_decide_placement( FivIoModel *self, GFileInfo *info, GPtrArray *subdirs, GPtrArray *files) { - if (self->filtering && g_file_info_get_is_hidden(info)) + if (self->filtering && + g_file_info_has_attribute(info, G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN) && + g_file_info_get_is_hidden(info)) return NULL; if (g_file_info_get_file_type(info) == G_FILE_TYPE_DIRECTORY) return subdirs; -- cgit v1.2.3-70-g09d2