Commit 1a78a157 authored by David Flynn's avatar David Flynn Committed by Rémi Duraffort

[qt4/recents] Remove dependency on qt4.4 for QList::removeOne()

Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent d76b77e1
......@@ -63,10 +63,11 @@ void RecentsMRL::addRecent( const QString &mrl )
return;
msg_Dbg( p_intf, "Adding a new MRL to recent ones: %s", qtu( mrl ) );
if( stack->contains( mrl ) )
int i_index = stack->indexOf( mrl );
if( 0 <= i_index )
{
stack->removeOne( mrl );
stack->prepend( mrl );
/* move to the front */
stack->move( i_index, 0 );
}
else
{
......
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