From 415e4aa2ec3868b68c9d3912d4ff2033ba8628ab Mon Sep 17 00:00:00 2001 From: Jim Broadus Date: Tue, 11 Feb 2020 22:45:54 -0800 Subject: [PATCH] Don't attempt to resolve URL if not relative. --- src/core/song.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index 8167b68da..31d630ec8 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -406,7 +406,7 @@ void Song::set_unavailable(bool v) { d->unavailable_ = v; } void Song::set_etag(const QString& etag) { d->etag_ = etag; } void Song::set_url(const QUrl& v) { - if (Application::kIsPortable) { + if (Application::kIsPortable && v.isRelative()) { QUrl base = QUrl::fromLocalFile(QCoreApplication::applicationDirPath() + "/"); d->url_ = base.resolved(v);