From b139c0a824f571b4e039aec663f0ec1a56bf5564 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 13 May 2020 19:42:13 +0200 Subject: [PATCH] Dont use song count from backend for CDDA devices --- src/device/connecteddevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/device/connecteddevice.cpp b/src/device/connecteddevice.cpp index 9ffd0da4a..f2755fee3 100644 --- a/src/device/connecteddevice.cpp +++ b/src/device/connecteddevice.cpp @@ -58,7 +58,9 @@ ConnectedDevice::ConnectedDevice(const QUrl &url, DeviceLister *lister, const QS backend_->moveToThread(app_->database()->thread()); qLog(Debug) << backend_ << "for device" << unique_id_ << "moved to thread" << app_->database()->thread(); - connect(backend_, SIGNAL(TotalSongCountUpdated(int)), SLOT(BackendTotalSongCountUpdated(int))); + if (url_.scheme() != "cdda") { + connect(backend_, SIGNAL(TotalSongCountUpdated(int)), SLOT(BackendTotalSongCountUpdated(int))); + } backend_->Init(app_->database(), Song::Source_Device,