* 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
This commit is contained in:
Axel Dörfler
2009-10-20 20:06:46 +00:00
parent f5e3b4741a
commit 6f8b6a0dfd
@@ -1635,7 +1635,7 @@ Query::LiveUpdate(Inode* inode, const char* attribute, int32 type,
} else { } else {
// The entry stays in the query - only notify in case the name of the // The entry stays in the query - only notify in case the name of the
// inode was changed // inode was changed
if (oldKey == NULL || strcmp(attribute, "name")) if (oldKey == NULL || strcmp(attribute, "name") != 0 || newKey == NULL)
return; return;
notify_query_entry_removed(fPort, fToken, fVolume->ID(), notify_query_entry_removed(fPort, fToken, fVolume->ID(),