Skip to content

Commit

Permalink
smartplaylist: make sure we save to a legal path (replacing special c…
Browse files Browse the repository at this point in the history
…haracters with underscores)
  • Loading branch information
Montellese committed Feb 1, 2012
1 parent a26d255 commit ba130f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/dialogs/GUIDialogSmartPlaylistEditor.cpp
Expand Up @@ -164,7 +164,7 @@ void CGUIDialogSmartPlaylistEditor::OnOK()
// save our playlist
if (m_path.IsEmpty())
{
CStdString filename(m_playlist.m_playlistName);
CStdString filename(CUtil::MakeLegalFileName(m_playlist.m_playlistName));
CStdString path;
if (CGUIDialogKeyboard::ShowAndGetInput(filename, g_localizeStrings.Get(16013), false))
{
Expand Down

0 comments on commit ba130f6

Please sign in to comment.