diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-13 21:57:17 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-13 21:57:17 +0200 |
commit | 9ddfca8f3112767da0dbbd113a414d44c169b6fd (patch) | |
tree | 29db93b409de925f957d44667e6161ba49cac677 /src/sel_items_adder.cpp | |
parent | fcc097fc7694892a789a3622f502d4d1d9c71ef8 (diff) |
playlist: move sorting dialog related functions to separate file
Diffstat (limited to 'src/sel_items_adder.cpp')
-rw-r--r-- | src/sel_items_adder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sel_items_adder.cpp b/src/sel_items_adder.cpp index 3da39ca4..f3cb9dc4 100644 --- a/src/sel_items_adder.cpp +++ b/src/sel_items_adder.cpp @@ -224,14 +224,14 @@ void SelectedItemsAdder::enterPressed() { std::string album = myPlaylist->nowPlayingSong().getAlbum(); int i; - for (i = Mpd.GetCurrentlyPlayingSongPos()+1; i < int(myPlaylist->Items->size()); ++i) - if ((*myPlaylist->Items)[i].value().getAlbum() != album) + for (i = Mpd.GetCurrentlyPlayingSongPos()+1; i < int(myPlaylist->main()->size()); ++i) + if ((*myPlaylist->main())[i].value().getAlbum() != album) break; successful_operation = myPlaylist->Add(list, 0, i); } else if (pos == 4) // after highlighted item { - successful_operation = myPlaylist->Add(list, 0, std::min(myPlaylist->Items->choice()+1, myPlaylist->Items->size())); + successful_operation = myPlaylist->Add(list, 0, std::min(myPlaylist->main()->choice()+1, myPlaylist->main()->size())); } else { |