Notify when removing a package link directory

This commit is contained in:
Ingo Weinhold 2011-06-25 18:46:03 +02:00
parent dd9554ae69
commit b143a5a861

View File

@ -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);
}
}