Commit ab0a0856 authored by Rémi Duraffort's avatar Rémi Duraffort

Qt4: no need to try to search and replace when we know that the QString is empty.

parent 4e8c2bbf
......@@ -592,10 +592,12 @@ void InputManager::UpdateArt()
char *psz_art = input_item_GetArtURL( input_GetItem( p_input ) );
url = qfu( psz_art );
free( psz_art );
}
url = url.replace( "file://", QString("" ) );
url = url.replace( "file://", "" );
/* Taglib seems to define a attachment://, It won't work yet */
url = url.replace( "attachment://", QString("" ) );
url = url.replace( "attachment://", "" );
}
/* Update Art meta */
emit artChanged( url );
}
......
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