Fix display of album art
authorRafaël Carré <funman@videolan.org>
Fri, 18 Apr 2008 15:55:14 +0000 (17:55 +0200)
committerRafaël Carré <funman@videolan.org>
Fri, 18 Apr 2008 15:55:54 +0000 (17:55 +0200)
modules/gui/qt4/components/playlist/playlist.cpp

index 5ecba18..92345c5 100644 (file)
@@ -123,13 +123,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i,
 
 void PlaylistWidget::setArt( QString url )
 {
-    if( url.isEmpty() )
+    if( prevArt != url )
     {
-        art->setPixmap( QPixmap( ":/noart.png" ) );
-    }
-    else if( prevArt != url )
-    {
-        art->setPixmap( QPixmap( url ) );
+        art->setPixmap( QPixmap( url.isEmpty() ? ":/noart.png" : url ) );
         prevArt = url;
     }
 }