| 433 | } |
| 434 | |
| 435 | bool ProfileObject::UpdatePath() |
| 436 | { |
| 437 | m_path = (char *)MkPath(GetParent()->GetPath(), m_name); |
| 438 | |
| 439 | if (m_profile != NULL) { |
| 440 | if(isDir()) |
| 441 | m_profile->SetParent(SU::Utf8ToTChar(m_path)); |
| 442 | else |
| 443 | m_profile->SetParent(SU::Utf8ToTChar(GetParent()->GetPath())); |
| 444 | } |
| 445 | |
| 446 | if (isDir()) { |
| 447 | POVector::iterator it; |
| 448 | for (it = m_children.begin(); it < m_children.end(); ++it) { |
| 449 | (*it)->UpdatePath(); |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | return TRUE; |
| 454 | } |
| 455 | |
| 456 | void ProfileObject::SetProfiles(vProfile* profiles) |
| 457 | { |