Permalink
Browse files

MythMusic: Make 'All Tracks' add all the tracks to the playlist

On the playlist editor screen selecting the 'All tracks' node will add all the
tracks below it to the playlist.
(cherry picked from commit 6c6b4b8)

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
  • Loading branch information...
Paul Harrison authored and stuartm committed May 10, 2012
1 parent fa9edd6 commit 9bc18c866747a11ca649d8dbe9097e66268f8e03
Showing with 7 additions and 21 deletions.
  1. +7 −21 mythplugins/mythmusic/mythmusic/playlisteditorview.cpp
@@ -489,12 +489,10 @@ void PlaylistEditorView::ShowMenu(void)
{
menu = createPlaylistMenu();
}
else if (mnode->getAction() == "album" ||
mnode->getAction() == "artist" ||
mnode->getAction() == "compartist" ||
mnode->getAction() == "genre" ||
mnode->getAction() == "year" ||
mnode->getAction() == "rating")
else if (mnode->getAction() == "trackid")
{
}
else
{
menu = createPlaylistOptionsMenu();
@@ -680,21 +678,7 @@ void PlaylistEditorView::treeItemClicked(MythUIButtonListItem *item)
if (!mnode)
return;
if (mnode->getAction() == "smartplaylists" ||
mnode->getAction() == "smartplaylistcategory" ||
mnode->getAction() == "playlists" ||
mnode->getAction() == "smartplaylist" ||
mnode->getAction() == "playlist" ||
mnode->getAction() == "album" ||
mnode->getAction() == "artist" ||
mnode->getAction() == "compartist" ||
mnode->getAction() == "genre" ||
mnode->getAction() == "year" ||
mnode->getAction() == "rating")
{
ShowMenu();
}
else if (mnode->getAction() == "trackid")
if (mnode->getAction() == "trackid")
{
if (gPlayer->getPlaylist()->checkTrack(mnode->getInt()))
{
@@ -709,6 +693,8 @@ void PlaylistEditorView::treeItemClicked(MythUIButtonListItem *item)
mnode->setCheck(MythUIButtonListItem::FullChecked);
}
}
else
ShowMenu();
}

0 comments on commit 9bc18c8

Please sign in to comment.