if there is no selected items, treat the current one as selected
This commit is contained in:
@@ -270,6 +270,8 @@ void PlaylistEditor::GetSelectedSongs(MPD::SongList &v)
|
||||
{
|
||||
std::vector<size_t> selected;
|
||||
Content->GetSelected(selected);
|
||||
if (selected.empty())
|
||||
selected.push_back(Content->Choice());
|
||||
for (std::vector<size_t>::const_iterator it = selected.begin(); it != selected.end(); ++it)
|
||||
{
|
||||
v.push_back(new MPD::Song(Content->at(*it)));
|
||||
|
||||
Reference in New Issue
Block a user