Skip to content

Commit

Permalink
Revert "Use DetachParent to avoid some ugliness in the mythvideo brea…
Browse files Browse the repository at this point in the history
…dcrumbs."

This reverts commit 96f5fa4.

Will have to go another direction on this, maybe modifying the tree
before multiple independant pointers are created to it or re-writing the
tree building so that we don't end up with redundant nodes that then
need to be ignored.
  • Loading branch information
stuartm committed Jan 25, 2011
1 parent a7229d3 commit cb002bc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mythplugins/mythvideo/mythvideo/videodlg.cpp
Expand Up @@ -1408,14 +1408,7 @@ void VideoDialog::fetchVideos()
{
MythGenericTree *node = m_d->m_rootNode->getChildAt(0);
if (node->getInt() == kSubFolder && node->childCount() > 1)
{
// Detach this node from it's parent so that the parent can be
// deleted without destroying the child.
node->DetachParent();
node->SetText(m_d->m_rootNode->GetText());
delete m_d->m_rootNode;
m_d->m_rootNode = node;
}
else if (node->getInt() == kUpFolder)
m_d->m_treeLoaded = false;
}
Expand Down

0 comments on commit cb002bc

Please sign in to comment.