[vlc-commits] qt: Remove useless saveAPlaylist wrapper

Hugo Beauzée-Luyssen git at videolan.org
Wed May 10 14:28:19 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed May 10 14:26:21 2017 +0200| [927cdbc97770515dee90ff82c98ca5164b45b1a4] | committer: Hugo Beauzée-Luyssen

qt: Remove useless saveAPlaylist wrapper

The playlist will always be the playing playlist and the node is ignored
since the export of a specific node is lacking.
Should we allow the user to save the media library, we can reintroduce a
similar wrapper with a boolean instead of a playlist node.

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

 modules/gui/qt/dialogs_provider.cpp | 9 ++-------
 modules/gui/qt/dialogs_provider.hpp | 1 -
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/modules/gui/qt/dialogs_provider.cpp b/modules/gui/qt/dialogs_provider.cpp
index 1f349169a8..1e26f1f71e 100644
--- a/modules/gui/qt/dialogs_provider.cpp
+++ b/modules/gui/qt/dialogs_provider.cpp
@@ -620,7 +620,7 @@ void DialogsProvider::openAPlaylist()
     }
 }
 
-void DialogsProvider::saveAPlaylist(playlist_t *p_playlist, playlist_item_t *p_node)
+void DialogsProvider::savePlayingToPlaylist()
 {
     static const struct
     {
@@ -686,17 +686,12 @@ void DialogsProvider::saveAPlaylist(playlist_t *p_playlist, playlist_item_t *p_n
 
     if ( psz_selected_module )
     {
-        playlist_Export( p_playlist, qtu( toNativeSeparators( file ) ),
+        playlist_Export( THEPL, qtu( toNativeSeparators( file ) ),
                          true, psz_selected_module );
         getSettings()->setValue( "last-playlist-ext", psz_last_playlist_ext );
     }
 }
 
-void DialogsProvider::savePlayingToPlaylist()
-{
-    saveAPlaylist(THEPL, THEPL->p_playing);
-}
-
 /****************************************************************************
  * Sout emulation
  ****************************************************************************/
diff --git a/modules/gui/qt/dialogs_provider.hpp b/modules/gui/qt/dialogs_provider.hpp
index c0a15643be..13862edbdb 100644
--- a/modules/gui/qt/dialogs_provider.hpp
+++ b/modules/gui/qt/dialogs_provider.hpp
@@ -124,7 +124,6 @@ private:
 
     void openDialog( int );
     void addFromSimple( bool, bool );
-    void saveAPlaylist(playlist_t *p_playlist, playlist_item_t *p_node);
 
 public slots:
     void playlistDialog();



More information about the vlc-commits mailing list