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