Commit 1807734a authored by Fabio Ritrovato's avatar Fabio Ritrovato Committed by Jean-Baptiste Kempf

Skins2: enable playlist saving Is available on qt4, so i don't see why it's not on skins2

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 0c791020
...@@ -101,10 +101,17 @@ void CmdPlaylistSave::execute() ...@@ -101,10 +101,17 @@ void CmdPlaylistSave::execute()
playlist_t *pPlaylist = getIntf()->p_sys->p_playlist; playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
if( pPlaylist != NULL ) if( pPlaylist != NULL )
{ {
// FIXME: when the PLS export will be working, we'll need to remove static const char psz_xspf[] = "export-xspf",
// this hardcoding... psz_m3u[] = "export-m3u";
msg_Err( getIntf(), "need to fix playlist save" ); const char *psz_module;
// playlist_Export( pPlaylist, m_file.c_str(), "export-m3u" ); if( m_file.find( ".xsp", 0 ) != string::npos )
psz_module = psz_xspf;
else
{
psz_module = psz_m3u;
if( m_file.find( ".m3u", 0 ) == string::npos )
m_file.append( ".m3u" );
}
playlist_Export( pPlaylist, m_file.c_str(), pPlaylist->p_local_category, psz_module );
} }
} }
...@@ -237,7 +237,7 @@ void Dialogs::showPlaylistLoad() ...@@ -237,7 +237,7 @@ void Dialogs::showPlaylistLoad()
void Dialogs::showPlaylistSave() void Dialogs::showPlaylistSave()
{ {
showFileGeneric( _("Save playlist"), _("M3U file|*.m3u|XSPF playlist|*.xspf"), showFileGeneric( _("Save playlist"), _("XSPF playlist|*.xspf|M3U file|*.m3u"),
showPlaylistSaveCB, kSAVE ); showPlaylistSaveCB, kSAVE );
} }
......
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