[tracker/miner-fs-refactor: 69/127] libtracker-miner: Only emit ::file-deleted on folders for the toplevel being deleted
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-refactor: 69/127] libtracker-miner: Only emit ::file-deleted on folders for the toplevel being deleted
- Date: Wed, 7 Dec 2011 10:42:45 +0000 (UTC)
commit 97e50732cc2fd2bc4a91cf3ee57f383cb9ce5724
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Oct 4 11:31:11 2011 +0200
libtracker-miner: Only emit ::file-deleted on folders for the toplevel being deleted
src/libtracker-miner/tracker-file-notifier.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index d488e12..c25cb8e 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -208,6 +208,9 @@ file_notifier_traverse_tree_foreach (GFile *file,
if (store_mtime && !disk_mtime) {
/* In store but not in disk, delete */
g_signal_emit (notifier, signals[FILE_DELETED], 0, file);
+
+ /* Only emit it for the toplevel folder, if it is a folder */
+ return TRUE;
} else if (disk_mtime && !store_mtime) {
/* In disk but not in store, create */
g_signal_emit (notifier, signals[FILE_CREATED], 0, file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]