]> git.sesse.net Git - vlc/commitdiff
factorize.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 23 Jul 2009 12:23:32 +0000 (14:23 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 23 Jul 2009 12:23:32 +0000 (14:23 +0200)
modules/gui/qt4/dialogs_provider.cpp

index fe52025537bafa401a57cafbe90cf96b4e209d7b..f150b0eceb431c1f1bba302018d3a25c4d984405 100644 (file)
@@ -419,11 +419,9 @@ void DialogsProvider::addFromSimple( bool pl, bool go)
     foreach( const QString &file, files )
     {
         playlist_Add( THEPL, qtu( toNativeSeparators( file ) ), NULL,
-                      go ? ( PLAYLIST_APPEND | ( i ? 0 : PLAYLIST_GO ) |
-                                               ( i ? PLAYLIST_PREPARSE : 0 ) )
+                      go ? ( PLAYLIST_APPEND | ( i ? PLAYLIST_PREPARSE : PLAYLIST_GO ) )
                          : ( PLAYLIST_APPEND | PLAYLIST_PREPARSE ),
-                      PLAYLIST_END,
-                      pl ? true : false, false );
+                      PLAYLIST_END, pl, pl_Unlocked );
         RecentsMRL::getInstance( p_intf )->addRecent(
                 toNativeSeparators( file ) );
         i++;