Commit c3a286b1 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

--warning

Fix annoying warning when connecting to a nullptr emitter
parent 40dc6006
......@@ -134,8 +134,10 @@ void ResourcesModel::addResourcesBackend(AbstractResourcesBackend* backend)
connect(backend, &AbstractResourcesBackend::fetchingUpdatesProgressChanged, this, [this] { m_fetchingUpdatesProgress.reevaluate(); });
connect(backend, &AbstractResourcesBackend::resourceRemoved, this, &ResourcesModel::resourceRemoved);
connect(backend, &AbstractResourcesBackend::passiveMessage, this, &ResourcesModel::passiveMessage);
connect(backend->reviewsBackend(), &AbstractReviewsBackend::error, this, &ResourcesModel::passiveMessage, Qt::UniqueConnection);
connect(backend->backendUpdater(), &AbstractBackendUpdater::progressingChanged, this, &ResourcesModel::slotFetching);
if (backend->reviewsBackend()) {
connect(backend->reviewsBackend(), &AbstractReviewsBackend::error, this, &ResourcesModel::passiveMessage, Qt::UniqueConnection);
}
// In case this is in fact the first backend to be added, and also happens to be
// pre-filled, we still need for the rest of the backends to be added before trying
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment