Changeset 2977
- Timestamp:
- 04/28/06 05:55:24 (3 years ago)
- Files:
-
- hydranode/hncgcomm/cgcomm.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hydranode/hncgcomm/cgcomm.cpp
r2961 r2977 1023 1023 case OC_CADDED: { 1024 1024 uint32_t id = Utils::getVal<uint32_t>(i); 1025 ObjectPtr parent = findObject(id); 1025 1026 ObjectPtr child = readObject(i); 1026 1027 ObjectPtr found = findObject(child->getId()); … … 1031 1032 } else { 1032 1033 m_objects[child->getId()] = child; 1034 if (parent) { 1035 parent->m_childIds.insert(id); 1036 parent->m_children[id] = child; 1037 parent->childAdded(parent, child); 1038 child->m_parent = parent; 1039 } 1033 1040 } 1034 ObjectPtr parent = findObject(id); 1035 if (parent) { 1036 parent->m_childIds.insert(id); 1037 parent->m_children[id] = child; 1038 parent->childAdded(parent, child); 1039 child->m_parent = parent; 1040 } 1041 addedObject(child); 1041 1042 break; 1042 1043 } … … 1051 1052 parent->childRemoved(parent, child); 1052 1053 } 1053 removedObject(child); 1054 if (child) { 1055 removedObject(child); 1056 } 1054 1057 break; 1055 1058 }
