fix searching in browser
it was taking whole path, take only top dir.
This commit is contained in:
@@ -459,8 +459,7 @@ void Display::Items(const MPD::Item &item, void *, Menu<MPD::Item> *menu)
|
||||
*menu << "[..]";
|
||||
return;
|
||||
}
|
||||
size_t slash = item.name.rfind("/");
|
||||
*menu << "[" << (slash != string::npos ? item.name.substr(slash+1) : item.name) << "]";
|
||||
*menu << "[" << ExtractTopDirectory(item.name) << "]";
|
||||
return;
|
||||
}
|
||||
case MPD::itSong:
|
||||
|
||||
Reference in New Issue
Block a user