diff options
author | montellese <montellese@xbmc.org> | 2012-08-06 22:32:01 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2012-08-06 22:32:01 +0200 |
commit | 0d521e50049dab5b7543384f4de54c6bc4645ef4 (patch) | |
tree | 09a1b6a33efdfa7e45dc9b43b64b5de7c946cda4 | |
parent | bf79aad1d3d979f9e1dfaea137602ffb9f7c7e08 (diff) |
smartplaylists: make sure that there's always at least one rule ("new rule ...") when opening the editor
-rw-r--r-- | xbmc/dialogs/GUIDialogSmartPlaylistEditor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/dialogs/GUIDialogSmartPlaylistEditor.cpp b/xbmc/dialogs/GUIDialogSmartPlaylistEditor.cpp index 021e7a95e1..4fa7a1127c 100644 --- a/xbmc/dialogs/GUIDialogSmartPlaylistEditor.cpp +++ b/xbmc/dialogs/GUIDialogSmartPlaylistEditor.cpp @@ -496,6 +496,8 @@ bool CGUIDialogSmartPlaylistEditor::EditPlaylist(const CStdString &path, const C } editor->m_playlist = playlist; + if (editor->m_playlist.m_playlistRules.size() <= 0) + editor->m_playlist.m_playlistRules.push_back(CSmartPlaylistRule()); editor->m_path = path; editor->Initialize(); editor->DoModal(g_windowManager.GetActiveWindow()); |