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

factorize.

parent 4df6f959
...@@ -419,11 +419,9 @@ void DialogsProvider::addFromSimple( bool pl, bool go) ...@@ -419,11 +419,9 @@ void DialogsProvider::addFromSimple( bool pl, bool go)
foreach( const QString &file, files ) foreach( const QString &file, files )
{ {
playlist_Add( THEPL, qtu( toNativeSeparators( file ) ), NULL, playlist_Add( THEPL, qtu( toNativeSeparators( file ) ), NULL,
go ? ( PLAYLIST_APPEND | ( i ? 0 : PLAYLIST_GO ) | go ? ( PLAYLIST_APPEND | ( i ? PLAYLIST_PREPARSE : PLAYLIST_GO ) )
( i ? PLAYLIST_PREPARSE : 0 ) )
: ( PLAYLIST_APPEND | PLAYLIST_PREPARSE ), : ( PLAYLIST_APPEND | PLAYLIST_PREPARSE ),
PLAYLIST_END, PLAYLIST_END, pl, pl_Unlocked );
pl ? true : false, false );
RecentsMRL::getInstance( p_intf )->addRecent( RecentsMRL::getInstance( p_intf )->addRecent(
toNativeSeparators( file ) ); toNativeSeparators( file ) );
i++; i++;
......
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