aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gfilenotify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gfilenotify.c b/src/gfilenotify.c
index 2057f885300..8660f415e2f 100644
--- a/src/gfilenotify.c
+++ b/src/gfilenotify.c
@@ -110,6 +110,7 @@ dir_monitor_callback (GFileMonitor *monitor,
110 110
111 /* Cancel monitor if file or directory is deleted. */ 111 /* Cancel monitor if file or directory is deleted. */
112 if (!NILP (Fmember (symbol, list2 (Qdeleted, Qmoved))) && 112 if (!NILP (Fmember (symbol, list2 (Qdeleted, Qmoved))) &&
113 (strcmp (name, SSDATA (XCAR (XCDR (watch_object)))) == 0) &&
113 !g_file_monitor_is_cancelled (monitor)) 114 !g_file_monitor_is_cancelled (monitor))
114 g_file_monitor_cancel (monitor); 115 g_file_monitor_cancel (monitor);
115 } 116 }