Commit 1a1eb28c authored by Scott Wheeler's avatar Scott Wheeler

Oops. There was no reason to copy this list -- this doesn't actually

modify the list view so it's safe to do this call while iterating through
it.

svn path=/trunk/kdemultimedia/juk/; revision=317252
parent 7c48ba7a
......@@ -40,9 +40,12 @@ void Watched::removeObserver(PlaylistObserver *observer)
Watched::~Watched()
{
QValueList<PlaylistObserver *> l = m_observers;
for(QValueList<PlaylistObserver *>::Iterator it = l.begin(); it != l.end(); ++it)
for(QValueList<PlaylistObserver *>::Iterator it = m_observers.begin();
it != m_observers.end();
++it)
{
(*it)->clearWatched();
}
}
////////////////////////////////////////////////////////////////////////////////
......
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