From kde-commits Tue May 24 12:47:22 2011 From: Giorgos Kylafas Date: Tue, 24 May 2011 12:47:22 +0000 To: kde-commits Subject: KDE/kdemultimedia/juk Message-Id: <20110524124722.9E883AC852 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=130624130510552 SVN commit 1233429 by kylafas: juk: fix showing the items of all the selected playlists. When two or more playlists are selected from the PlaylistBox to the left, a dynamic playlist is used which shows the union of their contents. However, the first time this dynamic playlist is created, it has to be set up properly, otherwise only the contents of the first selected playlist will be shown. More specifically, if it is not set up, i.e. not added to the stack of playlists, QStackedWidget::setCurrentWidget() fails complaining that "widget 0x... not contained in stack". M +3 -1 playlistcollection.cpp --- trunk/KDE/kdemultimedia/juk/playlistcollection.cpp #1233428:1233429 @@ -184,9 +184,11 @@ { if(m_dynamicPlaylist) m_dynamicPlaylist->setPlaylists(playlists); - else + else { m_dynamicPlaylist = new DynamicPlaylist(playlists, this, i18n("Dynamic List"), "audio-midi", false, true); + PlaylistCollection::setupPlaylist(m_dynamicPlaylist, QString()); + } PlaylistCollection::raise(m_dynamicPlaylist); }