[vlc-devel] commit: Fix display of album art ( Rafaël Carré )

git version control git at videolan.org
Fri Apr 18 17:55:14 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Apr 18 17:55:14 2008 +0200| [e93d89f9909fa6008cee905d8eb9a048292d25dd]

Fix display of album art

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

 modules/gui/qt4/components/playlist/playlist.cpp |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp
index 5ecba18..92345c5 100644
--- a/modules/gui/qt4/components/playlist/playlist.cpp
+++ b/modules/gui/qt4/components/playlist/playlist.cpp
@@ -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;
     }
 }




More information about the vlc-devel mailing list