]> git.sesse.net Git - vlc/commitdiff
Qt4: display the select SD in playlist.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 6 Sep 2009 19:32:15 +0000 (21:32 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 6 Sep 2009 22:04:44 +0000 (00:04 +0200)
Maybe playlist_ServicesDiscoveryAdd could return the playlist_item_t* ?
This is ugly, and should be fixed.

modules/gui/qt4/components/playlist/selector.cpp

index dd5462d590fbb6351f0f9c484ae5aec34e65e079..d989931eb3caf7b7fd2e32a20692d5ae76057182 100644 (file)
@@ -83,8 +83,8 @@ void PLSelector::setSource( QTreeWidgetItem *item )
         if( !playlist_IsServicesDiscoveryLoaded( THEPL, qtu( qs ) ) )
         {
             playlist_ServicesDiscoveryAdd( THEPL, qtu( qs ) );
-            //FIXME we should return the playlist_item_t;
-            emit NULL;
+#warning FIXME
+            emit activated( THEPL->p_root_category->pp_children[THEPL->p_root_category->i_children-1] );
         }
     }
     else if( i_type == PL_TYPE || i_type == ML_TYPE )