[vlc-commits] qt4: hide SQL media library when not compiled in

Rafaël Carré git at videolan.org
Wed Nov 9 18:07:01 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Nov  9 12:06:42 2011 -0500| [998afc0b5e28387f047422a34c3dd1c1125e37ee] | committer: Rafaël Carré

qt4: hide SQL media library when not compiled in

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=998afc0b5e28387f047422a34c3dd1c1125e37ee
---

 modules/gui/qt4/components/playlist/selector.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index 9af0969..bb64382 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -194,8 +194,10 @@ void PLSelector::createItems()
                               THEPL->p_media_library );
     ml->treeItem()->setData( 0, SPECIAL_ROLE, QVariant( IS_ML ) );
 
+#ifdef MEDIA_LIBRARY
     /* SQL ML */
     addItem( SQL_ML_TYPE, "SQL Media Library" )->treeItem();
+#endif
 
     /* SD nodes */
     QTreeWidgetItem *mycomp = addItem( CATEGORY_TYPE, N_("My Computer") )->treeItem();
@@ -278,11 +280,13 @@ void PLSelector::setSource( QTreeWidgetItem *item )
         if( !sd_loaded )
             playlist_ServicesDiscoveryAdd( THEPL, qtu( qs ) );
     }
+#ifdef MEDIA_LIBRARY
     else if( i_type == SQL_ML_TYPE )
     {
         emit categoryActivated( NULL, true );
         return;
     }
+#endif
 
     /* */
     playlist_Lock( THEPL );



More information about the vlc-commits mailing list