summaryrefslogtreecommitdiff
path: root/src/sel_items_adder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sel_items_adder.cpp')
-rw-r--r--src/sel_items_adder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sel_items_adder.cpp b/src/sel_items_adder.cpp
index 79f82a7d..3662f6ba 100644
--- a/src/sel_items_adder.cpp
+++ b/src/sel_items_adder.cpp
@@ -50,6 +50,7 @@ void SelectedItemsAdder::Init()
itsPositionSelector->AddOption("At the beginning of playlist");
itsPositionSelector->AddOption("After current track");
itsPositionSelector->AddOption("After current album");
+ itsPositionSelector->AddOption("After highlighted item");
itsPositionSelector->AddSeparator();
itsPositionSelector->AddOption("Cancel");
@@ -230,6 +231,10 @@ void SelectedItemsAdder::EnterPressed()
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()));
+ }
else
{
w = itsPlaylistSelector;