diff --git a/ext/libclementine-common/core/latch.cpp b/ext/libclementine-common/core/latch.cpp index 1198d91d4..ed4448c28 100644 --- a/ext/libclementine-common/core/latch.cpp +++ b/ext/libclementine-common/core/latch.cpp @@ -29,7 +29,6 @@ void CountdownLatch::CountDown() { QMutexLocker l(&mutex_); Q_ASSERT(count_ > 0); --count_; - qLog(Debug) << "Decrement:" << count_; if (count_ == 0) { emit Done(); } diff --git a/src/songinfo/artistbiography.cpp b/src/songinfo/artistbiography.cpp index 3a56b709c..c1e44b427 100644 --- a/src/songinfo/artistbiography.cpp +++ b/src/songinfo/artistbiography.cpp @@ -72,20 +72,22 @@ void ArtistBiography::FetchInfo(int id, const Song& metadata) { QString body = response["articleBody"].toString(); QString url = response["url"].toString(); - CollapsibleInfoPane::Data data; - data.id_ = url; - data.title_ = tr("Biography"); - data.type_ = CollapsibleInfoPane::Data::Type_Biography; + if (!body.isEmpty()) { + CollapsibleInfoPane::Data data; + data.id_ = url; + data.title_ = tr("Biography"); + data.type_ = CollapsibleInfoPane::Data::Type_Biography; - QString text; - text += - "

" + tr("Open in your browser") + "

"; + QString text; + text += "

" + tr("Open in your browser") + + "

"; - text += body; - SongInfoTextView* editor = new SongInfoTextView; - editor->SetHtml(text); - data.contents_ = editor; - emit InfoReady(id, data); + text += body; + SongInfoTextView* editor = new SongInfoTextView; + editor->SetHtml(text); + data.contents_ = editor; + emit InfoReady(id, data); + } if (url.contains("wikipedia.org")) { FetchWikipediaImages(id, url);