Fix a stupid error in gfilenotify.c.
* src/gfilenotify.c (dir_monitor_callback): Cancel monitor only, if we've got a `deleted' signal AND the file name is the watched one.
This commit is contained in:
parent
fcfa23911d
commit
436ed2399a
1 changed files with 1 additions and 0 deletions
|
@ -110,6 +110,7 @@ dir_monitor_callback (GFileMonitor *monitor,
|
|||
|
||||
/* Cancel monitor if file or directory is deleted. */
|
||||
if (!NILP (Fmember (symbol, list2 (Qdeleted, Qmoved))) &&
|
||||
(strcmp (name, SSDATA (XCAR (XCDR (watch_object)))) == 0) &&
|
||||
!g_file_monitor_is_cancelled (monitor))
|
||||
g_file_monitor_cancel (monitor);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue