Commit 67a28fc1 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

FeaturedModel: Disconnect properly

parent da4fd5e2
......@@ -72,8 +72,8 @@ void FeaturedModel::refreshCurrentApplicationBackend()
if (m_backend == backend)
disconnect(backend, &AbstractResourcesBackend::fetchingChanged, this, &FeaturedModel::refresh);
disconnect(backend, &AbstractResourcesBackend::resourceRemoved, this, &FeaturedModel::removeResource);
disconnect(m_backend, &AbstractResourcesBackend::fetchingChanged, this, &FeaturedModel::refresh);
disconnect(m_backend, &AbstractResourcesBackend::resourceRemoved, this, &FeaturedModel::removeResource);
m_backend = backend;
if (backend) {
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