Adding button to remove from playlists (does not yet save favorites.txt yet)

This commit is contained in:
Don Honerbrink 2015-08-07 11:31:05 -05:00
parent 0ff46605eb
commit b940534e48
2 changed files with 2 additions and 3 deletions

View File

@ -653,14 +653,12 @@ void Page::removePlaylist()
CollectionInfo *collection = info.collection;
std::vector<Item *> *items = collection->playlists["favorites"];
std::vector<Item *> it = std::find(items->begin(), items->end(), selectedItem_);
std::vector<Item *>::iterator it = std::find(items->begin(), items->end(), selectedItem_);
if(it != items->end())
{
items->erase(it);
items->shrink_to_fit();
if(activeMenu_)
{
activeMenu_->deallocateSpritePoints();

View File

@ -81,6 +81,7 @@ public:
void setMinShowTime(float value);
float getMinShowTime();
void addPlaylist();
void removePlaylist();
private:
void highlight();