From 1798e327d773445d49a13560535241c4524abd53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nino=20Mi=C5=A1ki=C4=87-Pletenac?= Date: Wed, 21 Dec 2022 22:00:00 +0100 Subject: [PATCH] Show AutoDJ track count in sidebar also --- src/library/autodj/autodjfeature.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/library/autodj/autodjfeature.cpp b/src/library/autodj/autodjfeature.cpp index ac23a172d9c..d80f789c2e8 100644 --- a/src/library/autodj/autodjfeature.cpp +++ b/src/library/autodj/autodjfeature.cpp @@ -122,7 +122,9 @@ QVariant AutoDJFeature::title() { PlaylistSummary summary; if (m_pTrackCollection->playlists().readAutoDJPlaylistSummary(&summary) && summary.getTrackCount() > 0) { - title.append(QString(" (%1)").arg(summary.getTrackDurationText())); + title.append(QString(" (%1) %2") + .arg(QString::number(summary.getTrackCount()), + summary.getTrackDurationText())); } return title;