* 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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user