[vlc-commits] Qt: playlist, use the new helper to Open files

Jean-Baptiste Kempf git at videolan.org
Sun May 18 16:42:52 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun May 18 16:40:50 2014 +0200| [e3fa3a21da14ff0f2fcb8d10350653b06f307d57] | committer: Jean-Baptiste Kempf

Qt: playlist, use the new helper to Open files

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3fa3a21da14ff0f2fcb8d10350653b06f307d57
---

 modules/gui/qt4/components/playlist/playlist_model.cpp |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 831bda8..c1444cd 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -31,6 +31,7 @@
 #include "components/playlist/playlist_model.hpp"
 #include "input_manager.hpp"                            /* THEMIM */
 #include "util/qt_dirs.hpp"
+#include "recents.hpp"                                  /* Open:: */
 
 #include <vlc_intf_strings.h>                           /* I_DIR */
 
@@ -934,11 +935,8 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
 
     case ACTION_ENQUEUEFILE:
         foreach( const QString &uri, a.uris )
-            playlist_Add( THEPL, uri.toLatin1().constData(),
-                          NULL, PLAYLIST_APPEND | PLAYLIST_PREPARSE,
-                          PLAYLIST_END,
-                          getPLRootType() == ROOTTYPE_CURRENT_PLAYING,
-                          pl_Unlocked );
+            Open::openMRL( p_intf, uri.toLatin1().constData(),
+                           false, getPLRootType() == ROOTTYPE_CURRENT_PLAYING );
         return true;
 
     case ACTION_ENQUEUEDIR:



More information about the vlc-commits mailing list