Commit 00411e8a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: correct [eda1f5fe]

parent 1f62123c
...@@ -236,14 +236,17 @@ void MetaPanel::update( input_item_t *p_item ) ...@@ -236,14 +236,17 @@ void MetaPanel::update( input_item_t *p_item )
/* URL */ /* URL */
psz_meta = input_item_GetURL( p_item ); psz_meta = input_item_GetURL( p_item );
if( !EMPTY_STR( psz_meta ) && currentURL != psz_meta ) if( !EMPTY_STR( psz_meta ) )
{ {
currentURL = psz_meta; QString newURL = qfu(psz_meta);
if( currentURL != newURL )
lblURL->setText( "<a href='" + qfu( psz_meta ) + "'>" + {
qfu( psz_meta ).remove( QRegExp( ".*://") ) + "</a>" ); currentURL = newURL;
free( psz_meta ); lblURL->setText( "<a href='" + currentURL + "'>" +
currentURL.remove( QRegExp( ".*://") ) + "</a>" );
}
} }
free( psz_meta );
#undef UPDATE_META_INT #undef UPDATE_META_INT
#undef UPDATE_META #undef UPDATE_META
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment