Commit 927cdbc9 authored by Hugo Beauzée-Luyssen's avatar 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.
parent 36e7566a
......@@ -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
****************************************************************************/
......
......@@ -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();
......
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