mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
gpollfilemonitor: Add missing attribute checks for g_file_info_get_size()
Missed from the fixes for #2907. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
4ba3470269
commit
2029d7e900
@ -94,7 +94,9 @@ calc_event_type (GFileInfo *last,
|
||||
g_strcmp0 (g_file_info_get_etag (last), g_file_info_get_etag (new)) != 0)
|
||||
return G_FILE_MONITOR_EVENT_CHANGED;
|
||||
|
||||
if (g_file_info_get_size (last) != g_file_info_get_size (new))
|
||||
if (g_file_info_has_attribute (last, G_FILE_ATTRIBUTE_STANDARD_SIZE) &&
|
||||
g_file_info_has_attribute (new, G_FILE_ATTRIBUTE_STANDARD_SIZE) &&
|
||||
g_file_info_get_size (last) != g_file_info_get_size (new))
|
||||
return G_FILE_MONITOR_EVENT_CHANGED;
|
||||
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user