Notify when removing a package link directory
This commit is contained in:
parent
dd9554ae69
commit
b143a5a861
@ -146,8 +146,14 @@ PackageLinksDirectory::RemovePackage(Package* package)
|
||||
linkDirectory->RemovePackage(package, fListener);
|
||||
|
||||
// if empty, remove the link directory itself
|
||||
if (linkDirectory->IsEmpty())
|
||||
if (linkDirectory->IsEmpty()) {
|
||||
if (fListener != NULL) {
|
||||
NodeWriteLocker linkDirectoryWriteLocker(linkDirectory);
|
||||
fListener->PackageLinkNodeRemoved(linkDirectory);
|
||||
}
|
||||
|
||||
RemoveChild(linkDirectory);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user