Fix playback of local non-MPD files under Windows.

Issue #1250
This commit is contained in:
Craig Drummond
2018-04-30 22:18:32 +01:00
committed by Craig Drummond
parent 0993b222fa
commit ea402d2bc0
2 changed files with 2 additions and 0 deletions

View File

@@ -172,6 +172,7 @@ QByteArray HttpServer::encodeUrl(const Song &s)
#ifdef Q_OS_WIN
// Use a query item, as s.file might have a driver specifier
query.addQueryItem("file", s.file);
url.setPath("/"+Utils::getFile(s.file));
#else
url.setPath(s.file);
#endif