Commit 5c5f8f68 authored by Michael Pyne's avatar Michael Pyne

Fix a crash on shutdown bug for JuK by not overloading playlist observers to

monitor more than one playlist.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=994066
parent ec8ce622
......@@ -62,15 +62,12 @@ struct Line : public QFrame
NowPlaying::NowPlaying(QWidget *parent, PlaylistCollection *collection) :
QWidget(parent),
m_observer(this, collection),
// Also watch the collection
m_collectionListObserver(this, CollectionList::instance()),
m_collection(collection)
{
setObjectName("NowPlaying");
// m_observer is set to watch the PlaylistCollection, also watch for
// changes that come from CollectionList.
CollectionList::instance()->addObserver(&m_observer);
QHBoxLayout *layout = new QHBoxLayout(this);
setLayout(layout);
......
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