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 )
/* 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
......
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