From 4ad82422fcce38f7862360665c27720d1309b8ea Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Fri, 20 Sep 2024 14:51:27 -0400 Subject: [PATCH] Revert "modellist: work around filtered item models getting out of sync (#2545)" This is what caused regression seen in issue #2943 This reverts commit 30692a2dfc32569bfee73373815a50bc5a5f97c5. --- gpt4all-chat/src/modellist.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gpt4all-chat/src/modellist.cpp b/gpt4all-chat/src/modellist.cpp index d53c8fbfa316..db74209e220e 100644 --- a/gpt4all-chat/src/modellist.cpp +++ b/gpt4all-chat/src/modellist.cpp @@ -1010,12 +1010,6 @@ void ModelList::updateData(const QString &id, const QVector } } emit dataChanged(createIndex(index, 0), createIndex(index, 0)); - - // FIXME(jared): for some reason these don't update correctly when the source model changes, so we explicitly invalidate them - m_selectableModels->invalidate(); - m_installedModels->invalidate(); - m_downloadableModels->invalidate(); - emit selectableModelListChanged(); }