Commit 3003561a authored by Michael Pyne's avatar Michael Pyne
Browse files

Backport crash fix for bug 165660 (JuK crashes sometimes on exit) to 4.1.

Backport done in accordance with the RC1 tagging announcement which says that the only changes
to 4.1 should go into final now.

This fixes a known crash and is not dangerous.  The code removed is intended to prevent a
deleted playlist from remaining selected and causing crashes later.  However the only way to
remove a playlist which can be selected is to do so from the PlaylistBox::remove() function,
which handles this case already in a better fashion.  Leaving the code in risks crashes on JuK
shutdown if the playlist is removed after the CollectionList is deleted.

BUG:165660

svn path=/branches/KDE/4.1/kdemultimedia/juk/; revision=830198
parent 23aea303
......@@ -422,11 +422,6 @@ Playlist::~Playlist()
/* delete m_toolTip; */
// Select a different playlist if we're the selected one
if(isVisible() && this != CollectionList::instance())
m_collection->raise(CollectionList::instance());
if(!m_shuttingDown)
m_collection->removePlaylist(this);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment