Use wxFileDialog::GetPath() and not GetFilename(). Closes #1781

parent 29b3fcdf
...@@ -623,9 +623,9 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) ) ...@@ -623,9 +623,9 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
if( dialog.ShowModal() == wxID_OK ) if( dialog.ShowModal() == wxID_OK )
{ {
if( dialog.GetFilename().mb_str() ) if( dialog.GetPath().mb_str() )
{ {
playlist_Export( p_playlist, dialog.GetFilename().mb_str(), playlist_Export( p_playlist, dialog.GetPath().mb_str(),
formats[dialog.GetFilterIndex()].psz_module ); formats[dialog.GetFilterIndex()].psz_module );
} }
} }
......
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