From 6f8b6a0dfd4275b717a40688ecdf4729feb9f8a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 20 Oct 2009 20:06:46 +0000 Subject: [PATCH] * When an item was deleted, the order of the attributes decided whether or not one or two remove messages were generated, as the query code produces remove/create notifications on renames. Will check next if that also happens on BeOS, as it doesn't really make much sense. * This should fix the wrong mail count of the Deskbar replicant when you delete mail. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33683 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Query.cpp b/src/add-ons/kernel/file_systems/bfs/Query.cpp index b572934a64..eaa10135b9 100644 --- a/src/add-ons/kernel/file_systems/bfs/Query.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Query.cpp @@ -1635,7 +1635,7 @@ Query::LiveUpdate(Inode* inode, const char* attribute, int32 type, } else { // The entry stays in the query - only notify in case the name of the // inode was changed - if (oldKey == NULL || strcmp(attribute, "name")) + if (oldKey == NULL || strcmp(attribute, "name") != 0 || newKey == NULL) return; notify_query_entry_removed(fPort, fToken, fVolume->ID(),