[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdemultimedia/juk
From:       Giorgos Kylafas <gekylafas () gmail ! com>
Date:       2011-05-24 12:47:22
Message-ID: 20110524124722.9E883AC852 () svn ! kde ! org
[Download RAW message or body]

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);
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic