Commit cf2ea654 authored by Scott Wheeler's avatar Scott Wheeler

Assume that we're passing in a valid list of Playlists since this code

wouldn't have actually worked if we weren't.  (Since removing stuff from
a list that we're iterating through doesn't work.)

svn path=/trunk/kdemultimedia/juk/; revision=250894
parent c2ed1329
...@@ -32,12 +32,8 @@ DynamicPlaylist::DynamicPlaylist(const PlaylistList &playlists, QWidget *parent, ...@@ -32,12 +32,8 @@ DynamicPlaylist::DynamicPlaylist(const PlaylistList &playlists, QWidget *parent,
setSorting(columns() + 1); setSorting(columns() + 1);
for(PlaylistList::ConstIterator it = m_playlists.begin(); it != m_playlists.end(); ++it) { for(PlaylistList::ConstIterator it = m_playlists.begin(); it != m_playlists.end(); ++it) {
if(*it) { connect(*it, SIGNAL(signalDataChanged()), this, SLOT(slotSetDirty()));
connect(*it, SIGNAL(signalDataChanged()), this, SLOT(slotSetDirty())); connect(*it, SIGNAL(signalCountChanged(Playlist *)), this, SLOT(slotSetDirty()));
connect(*it, SIGNAL(signalCountChanged(Playlist *)), this, SLOT(slotSetDirty()));
}
else
m_playlists.remove(*it);
} }
connect(CollectionList::instance(), SIGNAL(signalCollectionChanged()), this, SLOT(slotSetDirty())); connect(CollectionList::instance(), SIGNAL(signalCollectionChanged()), this, SLOT(slotSetDirty()));
} }
......
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