void CServerItem::AddChild(CQueueItem* pItem) { CQueueItem::AddChild(pItem); if (pItem->GetType() == QueueItemType_File || pItem->GetType() == QueueItemType_Folder) AddFileItemToList((CFileItem*)pItem); }
void CServerItem::AddChild(CQueueItem* pItem) { CQueueItem::AddChild(pItem); m_maxCachedIndex = -1; m_visibleOffspring += 1 + pItem->GetChildrenCount(true); if (pItem->GetType() == QueueItemType::File || pItem->GetType() == QueueItemType::Folder) AddFileItemToList((CFileItem*)pItem); wxASSERT(m_visibleOffspring >= static_cast<int>(m_children.size()) - m_removed_at_front); wxASSERT(((m_children.size() - m_removed_at_front) != 0) == (m_visibleOffspring != 0)); }