Process correctly the return value of the confirm dialog.

Update the backup usage label after deleting an entry.
Update the parent metadata size after deleting a node.
This commit is contained in:
codestation
2013-08-29 12:28:40 -04:30
parent b34b2f63f4
commit e44c3bca28
5 changed files with 17 additions and 9 deletions

View File

@@ -181,6 +181,8 @@ bool Database::removeInternal(root_list &list, const CMAObject *obj)
while(it != list.end()) {
if(!found && (*it) == obj) {
// update the size of the parent objects
(*it)->updateObjectSize(-(*it)->metadata.size);
it = list.erase(it);
found = true;
} else if(found && (*it)->metadata.ohfiParent == obj->metadata.ohfi) {