Fix compile error

This commit is contained in:
Jonas Kvinge
2019-06-19 02:39:11 +02:00
parent d27a3f1f33
commit 26633e0982
3 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ UrlHandler::LoadResult SubsonicUrlHandler::StartLoading(const QUrl &url) {
QUrl media_url(server_url());
if (media_url.path().right(1) == '/') {
if (!media_url.path().isEmpty() && media_url.path().right(1) == "/") {
media_url.setPath(media_url.path() + QString("rest/stream"));
}
else