Don't send B_ENTRY_MOVED messages twice, if fromDirectory == toDirectory.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20232 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a090257d09
commit
c2f0ee7a7b
@ -837,8 +837,10 @@ notify_entry_moved(mount_id device, vnode_id fromDirectory,
|
|||||||
get_interested_monitor_listeners(device, fromDirectory, B_WATCH_DIRECTORY,
|
get_interested_monitor_listeners(device, fromDirectory, B_WATCH_DIRECTORY,
|
||||||
interestedListeners, interestedListenerCount);
|
interestedListeners, interestedListenerCount);
|
||||||
// ... for the target directory
|
// ... for the target directory
|
||||||
get_interested_monitor_listeners(device, toDirectory, B_WATCH_DIRECTORY,
|
if (toDirectory != fromDirectory) {
|
||||||
interestedListeners, interestedListenerCount);
|
get_interested_monitor_listeners(device, toDirectory, B_WATCH_DIRECTORY,
|
||||||
|
interestedListeners, interestedListenerCount);
|
||||||
|
}
|
||||||
|
|
||||||
if (interestedListenerCount == 0)
|
if (interestedListenerCount == 0)
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user