summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-directory-async.c
diff options
context:
space:
mode:
authorMartin Wehner <martin.wehner@gmail.com>2006-07-11 01:55:30 +0000
committerMartin Wehner <mwehner@src.gnome.org>2006-07-11 01:55:30 +0000
commitb7e69e709d26fc3a36a4b5ed4d2e6556fe69483d (patch)
treef9af61a251d85fe002090cf2d092442b331baf34 /libnautilus-private/nautilus-directory-async.c
parent293e7cd0ef01b01dcd93f3602c48407a923575c7 (diff)
downloadnautilus-b7e69e709d26fc3a36a4b5ed4d2e6556fe69483d.tar.gz
Never add a file to both the added_files and changed_files lists. Don't
2006-07-11 Martin Wehner <martin.wehner@gmail.com> * libnautilus-private/nautilus-directory-async.c: (dequeue_pending_idle_callback): Never add a file to both the added_files and changed_files lists. Don't ref an existing file without adding it to the changed_file list. (#336051) Patch from Christian Neumair <chris@gnome-de.org>
Diffstat (limited to 'libnautilus-private/nautilus-directory-async.c')
-rw-r--r--libnautilus-private/nautilus-directory-async.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-directory-async.c b/libnautilus-private/nautilus-directory-async.c
index 8290b8549..2d348d392 100644
--- a/libnautilus-private/nautilus-directory-async.c
+++ b/libnautilus-private/nautilus-directory-async.c
@@ -862,13 +862,12 @@ dequeue_pending_idle_callback (gpointer callback_data)
nautilus_file_ref (file);
changed_files = g_list_prepend (changed_files, file);
}
- nautilus_file_ref (file);
} else {
/* new file, create a nautilus file object and add it to the list */
file = nautilus_file_new_from_info (directory, file_info);
nautilus_directory_add_file (directory, file);
+ added_files = g_list_prepend (added_files, file);
}
- added_files = g_list_prepend (added_files, file);
}
/* If we are done loading, then we assume that any unconfirmed