Don't attempt to resolve URL if not relative.

This commit is contained in:
Jim Broadus 2020-02-11 22:45:54 -08:00 committed by John Maguire
parent e7b0667196
commit 415e4aa2ec
1 changed files with 1 additions and 1 deletions

View File

@ -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);