Commit 998afc0b authored by Rafaël Carré's avatar Rafaël Carré

qt4: hide SQL media library when not compiled in

parent e19d5f53
...@@ -194,8 +194,10 @@ void PLSelector::createItems() ...@@ -194,8 +194,10 @@ void PLSelector::createItems()
THEPL->p_media_library ); THEPL->p_media_library );
ml->treeItem()->setData( 0, SPECIAL_ROLE, QVariant( IS_ML ) ); ml->treeItem()->setData( 0, SPECIAL_ROLE, QVariant( IS_ML ) );
#ifdef MEDIA_LIBRARY
/* SQL ML */ /* SQL ML */
addItem( SQL_ML_TYPE, "SQL Media Library" )->treeItem(); addItem( SQL_ML_TYPE, "SQL Media Library" )->treeItem();
#endif
/* SD nodes */ /* SD nodes */
QTreeWidgetItem *mycomp = addItem( CATEGORY_TYPE, N_("My Computer") )->treeItem(); QTreeWidgetItem *mycomp = addItem( CATEGORY_TYPE, N_("My Computer") )->treeItem();
...@@ -278,11 +280,13 @@ void PLSelector::setSource( QTreeWidgetItem *item ) ...@@ -278,11 +280,13 @@ void PLSelector::setSource( QTreeWidgetItem *item )
if( !sd_loaded ) if( !sd_loaded )
playlist_ServicesDiscoveryAdd( THEPL, qtu( qs ) ); playlist_ServicesDiscoveryAdd( THEPL, qtu( qs ) );
} }
#ifdef MEDIA_LIBRARY
else if( i_type == SQL_ML_TYPE ) else if( i_type == SQL_ML_TYPE )
{ {
emit categoryActivated( NULL, true ); emit categoryActivated( NULL, true );
return; return;
} }
#endif
/* */ /* */
playlist_Lock( THEPL ); playlist_Lock( THEPL );
......
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