[gnome-menus] entry-directories: Only recurse if we have a dir
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-menus] entry-directories: Only recurse if we have a dir
- Date: Wed, 20 Nov 2013 01:49:23 +0000 (UTC)
commit 06b110e16f6c404c17d3282e2a1976c3aaf520af
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Nov 19 20:46:21 2013 -0500
entry-directories: Only recurse if we have a dir
This prevents subdir entries from being created for files like
mimeinfo.cache and similar...
Why wasn't this being done before??
libmenu/entry-directories.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libmenu/entry-directories.c b/libmenu/entry-directories.c
index 87f00bd..d108519 100644
--- a/libmenu/entry-directories.c
+++ b/libmenu/entry-directories.c
@@ -544,7 +544,7 @@ handle_cached_dir_changed (MenuMonitor *monitor,
break;
}
}
- else /* Try recursing */
+ else if (g_file_test (path, G_FILE_TEST_IS_DIR)) /* Try recursing */
{
switch (event)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]