#ifdef WIN32
/* Add to the Windows 7 default list in taskbar */
- SHAddToRecentDocs( SHARD_PATHW, qtu( mrl ) );
+ char* path = make_path( qtu( mrl ) );
+ if( path )
+ {
+ SHAddToRecentDocs( SHARD_PATHW, mrl.utf16() );
+ free( path );
+ }
#endif
int i_index = stack->indexOf( mrl );
else
{
stack->prepend( mrl );
- if( stack->size() > RECENTS_LIST_SIZE )
+ if( stack->count() > RECENTS_LIST_SIZE )
stack->takeLast();
}
- QVLCMenu::updateRecents( p_intf );
+ VLCMenuBar::updateRecents( p_intf );
save();
}
return;
stack->clear();
- if( isActive ) QVLCMenu::updateRecents( p_intf );
+ if( isActive ) VLCMenuBar::updateRecents( p_intf );
save();
}
QStringList list = getSettings()->value( "RecentsMRL/list" ).toStringList();
/* And filter the regexp on the list */
- for( int i = 0; i < list.size(); ++i )
+ for( int i = 0; i < list.count(); ++i )
{
if ( !filter || filter->indexIn( list.at(i) ) == -1 )
stack->append( list.at(i) );