media library: do not attempt to locate local files

This commit is contained in:
Andrzej Rybczak
2014-09-03 12:35:42 +02:00
parent 563dac1a12
commit 17c5dbf548

View File

@@ -948,6 +948,11 @@ void MediaLibrary::LocateSong(const MPD::Song &s)
Statusbar::printf("Can't use this function because the song has no %s tag set", item_type);
return;
}
if (!s.isFromDatabase())
{
Statusbar::print("Song is not from the database");
return;
}
if (myScreen != this)
switchTo();