From fc9d101f04a86420ac8c17491011871c8978775a Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Fri, 2 Sep 2022 11:06:32 +0200 Subject: [PATCH] Fix setup status warning not always updating in ThingsView --- libnymea-app/thingsproxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnymea-app/thingsproxy.cpp b/libnymea-app/thingsproxy.cpp index bbec32f0..8af6aea1 100644 --- a/libnymea-app/thingsproxy.cpp +++ b/libnymea-app/thingsproxy.cpp @@ -66,7 +66,7 @@ void ThingsProxy::setEngine(Engine *engine) connect(sourceModel(), SIGNAL(countChanged()), this, SIGNAL(countChanged())); connect(sourceModel(), &QAbstractItemModel::dataChanged, this, [this]() { // Only invalidate the filter if we're actually interested in state changes - if (!m_sortStateName.isEmpty() || m_filterBatteryCritical || m_filterDisconnected || m_filterUpdates) { + if (!m_sortStateName.isEmpty() || m_filterBatteryCritical || m_filterDisconnected || m_filterUpdates || m_filterSetupFailed) { invalidateFilterInternal(); } }); @@ -93,7 +93,7 @@ void ThingsProxy::setParentProxy(ThingsProxy *parentProxy) connect(m_parentProxy, &QAbstractItemModel::dataChanged, this, [this]() { if (m_engine && // Only invalidate the filter if we're actually interested in state changes - (!m_sortStateName.isEmpty() || m_filterBatteryCritical || m_filterDisconnected || m_filterUpdates)) { + (!m_sortStateName.isEmpty() || m_filterBatteryCritical || m_filterDisconnected || m_filterUpdates || m_filterSetupFailed)) { invalidateFilterInternal(); } });