[vlc-commits] Qt: set the cover art (if any) at CoverArt widget construction
Jean-Baptiste Kempf
git at videolan.org
Fri Sep 14 23:59:30 CEST 2012
vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Sep 14 23:56:32 2012 +0200| [c147f2db1988f1f25f8c96c0a67de396322a0296] | committer: Jean-Baptiste Kempf
Qt: set the cover art (if any) at CoverArt widget construction
(cherry picked from commit a065e2d9a53b78037f99fa120bf2600aaaac2b85)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=c147f2db1988f1f25f8c96c0a67de396322a0296
---
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 7ac81b5..b1a9e8b 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -519,7 +519,11 @@ CoverArtLabel::CoverArtLabel( QWidget *parent, intf_thread_t *_p_i )
CONNECT( action, triggered(), this, askForUpdate() );
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