Dont use song count from backend for CDDA devices

This commit is contained in:
Jonas Kvinge 2020-05-13 19:42:13 +02:00
parent 5b0b924d34
commit b139c0a824

View File

@ -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,