| 204 | } |
| 205 | |
| 206 | void CMAObject::refreshPath() |
| 207 | { |
| 208 | if(parent) { |
| 209 | free(metadata.path); |
| 210 | QString newpath(QString(parent->metadata.path) + "/" + metadata.name); |
| 211 | metadata.path = strdup(newpath.toUtf8().data()); |
| 212 | m_path = parent->m_path + "/" + metadata.name; |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | bool CMAObject::hasParent(const CMAObject *obj) |
| 217 | { |