[tracker/miner-fs-rename-directory-to-hidden-name] libtracker-monitor: On directory remove, first remove monitors, then notify event
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-rename-directory-to-hidden-name] libtracker-monitor: On directory remove, first remove monitors, then notify event
- Date: Mon, 13 Dec 2010 15:32:49 +0000 (UTC)
commit bcc9b4e91c4b668d8700c2ea611327e54540c2e7
Author: Aleksander Morgado <aleksander lanedo com>
Date: Mon Dec 13 16:31:59 2010 +0100
libtracker-monitor: On directory remove, first remove monitors, then notify event
src/libtracker-miner/tracker-monitor.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 31eb12a..afbb1d5 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -657,15 +657,15 @@ emit_signal_for_event (TrackerMonitor *monitor,
g_debug ("Emitting ITEM_DELETED for (%s) '%s'",
event_data->is_directory ? "DIRECTORY" : "FILE",
event_data->file_uri);
- g_signal_emit (monitor,
- signals[ITEM_DELETED], 0,
- event_data->file,
- event_data->is_directory);
/* Remove monitors recursively */
if (event_data->is_directory) {
tracker_monitor_remove_recursively (monitor,
event_data->file);
}
+ g_signal_emit (monitor,
+ signals[ITEM_DELETED], 0,
+ event_data->file,
+ event_data->is_directory);
break;
case G_FILE_MONITOR_EVENT_MOVED:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]