[vlc-commits] Qt4: correct [eda1f5fea35ddb79a196aea9bbd698c737e1bd0f]
Rémi Denis-Courmont
git at videolan.org
Sun Sep 25 14:35:20 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 25 15:33:58 2011 +0300| [00411e8a34172e2f6caaf8825ba2db099d723631] | committer: Rémi Denis-Courmont
Qt4: correct [eda1f5fea35ddb79a196aea9bbd698c737e1bd0f]
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=00411e8a34172e2f6caaf8825ba2db099d723631
---
modules/gui/qt4/components/info_panels.cpp | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/modules/gui/qt4/components/info_panels.cpp b/modules/gui/qt4/components/info_panels.cpp
index 3700585..849c7cd 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -236,14 +236,17 @@ void MetaPanel::update( input_item_t *p_item )
/* URL */
psz_meta = input_item_GetURL( p_item );
- if( !EMPTY_STR( psz_meta ) && currentURL != psz_meta )
+ if( !EMPTY_STR( psz_meta ) )
{
- currentURL = psz_meta;
-
- lblURL->setText( "<a href='" + qfu( psz_meta ) + "'>" +
- qfu( psz_meta ).remove( QRegExp( ".*://") ) + "</a>" );
- free( psz_meta );
+ QString newURL = qfu(psz_meta);
+ if( currentURL != newURL )
+ {
+ currentURL = newURL;
+ lblURL->setText( "<a href='" + currentURL + "'>" +
+ currentURL.remove( QRegExp( ".*://") ) + "</a>" );
+ }
}
+ free( psz_meta );
#undef UPDATE_META_INT
#undef UPDATE_META
More information about the vlc-commits
mailing list