make SelectedItemsAdder work with local directories
This commit is contained in:
@@ -255,6 +255,16 @@ void Browser::GetSelectedSongs(MPD::SongList &v)
|
|||||||
{
|
{
|
||||||
case itDirectory:
|
case itDirectory:
|
||||||
{
|
{
|
||||||
|
# ifndef WIN32
|
||||||
|
if (isLocal())
|
||||||
|
{
|
||||||
|
MPD::ItemList list;
|
||||||
|
GetLocalDirectory(list, item.name, 1);
|
||||||
|
for (MPD::ItemList::const_iterator j = list.begin(); j != list.end(); ++j)
|
||||||
|
v.push_back(j->song);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
# endif // !WIN32
|
||||||
Mpd.GetDirectoryRecursive(locale_to_utf_cpy(item.name), v);
|
Mpd.GetDirectoryRecursive(locale_to_utf_cpy(item.name), v);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user