]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/playlist_model.cpp
Qt4: Some cosmetic work and design by Leo Spalteholz
[vlc] / modules / gui / qt4 / playlist_model.cpp
index 13b2a7c6c3e06fe00d6d5c9592b1480c13a3398b..cb38d3bbd5efa97d6458fc8cccad937094a450f6 100644 (file)
@@ -133,12 +133,13 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
     strings[2] = QString( psz_duration );
     type = p_item->p_input->i_type;
     current = iscurrent;
+
     if( current && p_item->p_input->p_meta &&
         p_item->p_input->p_meta->psz_arturl &&
         !strncmp( p_item->p_input->p_meta->psz_arturl, "file://", 7 ) )
-    {
         model->sendArt( qfu( p_item->p_input->p_meta->psz_arturl ) );
-    }
+    else if( current )
+        model->removeArt();
 }
 
 /*************************************************************************
@@ -729,6 +730,11 @@ void PLModel::sendArt( QString url )
     emit artSet( arturl );
 }
 
+void PLModel::removeArt()
+{
+    emit artSet( QString() );
+}
+
 /**
  * Deletion, here we have to do a ugly slow hack as we retrieve the full
  * list of indexes to delete at once: when we delete a node and all of