summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendrecent.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/gvfsbackendrecent.c')
-rw-r--r--daemon/gvfsbackendrecent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/gvfsbackendrecent.c b/daemon/gvfsbackendrecent.c
index 29476002..a1803f3c 100644
--- a/daemon/gvfsbackendrecent.c
+++ b/daemon/gvfsbackendrecent.c
@@ -561,9 +561,10 @@ reload_recent_items (GVfsBackendRecent *backend)
g_list_free (added);
/* process changes */
- for (l = changed; l; l = l->next)
+ if (monitor)
{
- g_vfs_monitor_emit_event (monitor, G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED, l->data, NULL);
+ for (l = changed; l; l = l->next)
+ g_vfs_monitor_emit_event (monitor, G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED, l->data, NULL);
}
g_list_free (changed);