Skip to content

Commit

Permalink
Ensure that all screens parented to a screenstack are deleted before …
Browse files Browse the repository at this point in the history
…we delete the stack, we shouldn't get this to this point under normal use but it's better to be safe.
  • Loading branch information
stuartm committed Dec 30, 2010
1 parent c1fad5d commit 04353da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mythtv/libs/libmythui/mythscreenstack.cpp
Expand Up @@ -33,6 +33,11 @@ MythScreenStack::MythScreenStack(MythMainWindow *parent, const QString &name,

MythScreenStack::~MythScreenStack()
{
while (!m_Children.isEmpty())
{
MythScreenType *child = m_Children.back();
PopScreen(child, false, true); // Don't fade, do delete
}
}

void MythScreenStack::EnableEffects(void)
Expand Down

0 comments on commit 04353da

Please sign in to comment.