do not allow empty search constraints with mpd < 0.14*
This commit is contained in:
1 parent
ab7dbe9cbe
commit
4c8a70aef5
1 file changed
+3
@@ -699,6 +699,9 @@ void Connection::StartFieldSearch(mpd_TagItems item)
|
||||
|
||||
void Connection::AddSearch(mpd_TagItems item, const string &str) const
|
||||
{
|
||||
// mpd version < 0.14.* doesn't support empty search constraints
|
||||
if (Version() < 14 && str.empty())
|
||||
return;
|
||||
if (isConnected)
|
||||
mpd_addConstraintSearch(itsConnection, item, str.c_str());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user