summaryrefslogtreecommitdiff
path: root/libnautilus/nautilus-idle-queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnautilus/nautilus-idle-queue.c')
-rw-r--r--libnautilus/nautilus-idle-queue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libnautilus/nautilus-idle-queue.c b/libnautilus/nautilus-idle-queue.c
index 11cb8d275..80d9e3b61 100644
--- a/libnautilus/nautilus-idle-queue.c
+++ b/libnautilus/nautilus-idle-queue.c
@@ -62,7 +62,9 @@ execute_queued_functions (gpointer callback_data)
for (node = functions; node != NULL; node = node->next) {
function = node->data;
- (* function->callback) (function->data, function->callback_data);
+ if (!queue->destroy) {
+ (* function->callback) (function->data, function->callback_data);
+ }
if (function->free_callback_data != NULL) {
(* function->free_callback_data) (function->callback_data);
}