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

@@ -10,6 +10,7 @@
7. For windows, when adding local files (served via internal HTTP server) add
the real file path as a query item.
8. Use smaller text for help text in Tweaks section of preferences dialog.
9. Fix playback of local non-MPD files under Windows.
2.3.0
-----

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