[vlc-commits] Qt: set the cover art (if any) at CoverArt widget construction

Jean-Baptiste Kempf git at videolan.org
Fri Sep 14 23:57:11 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Sep 14 23:56:32 2012 +0200| [a065e2d9a53b78037f99fa120bf2600aaaac2b85] | committer: Jean-Baptiste Kempf

Qt: set the cover art (if any) at CoverArt widget construction

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

 modules/gui/qt4/components/interface_widgets.cpp |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 58846d8..8d12d9b 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -525,7 +525,11 @@ CoverArtLabel::CoverArtLabel( QWidget *parent, intf_thread_t *_p_i )
     CONNECT( action, triggered(), this, setArtFromFile() );
     addAction( action );
 
-    showArtUpdate( "" );
+    p_item = THEMIM->currentInputItem();
+    if( p_item )
+        showArtUpdate( p_item );
+    else
+        showArtUpdate( "" );
 }
 
 CoverArtLabel::~CoverArtLabel()



More information about the vlc-commits mailing list