From af163486db1921508211e484fbc6efe6e2c8ce60 Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Tue, 8 Oct 2024 11:16:24 -0400 Subject: [PATCH] modellist: remove invalidate calls now that we have fixed the signals These were causing the model view scroll position to jump back to the start whenever a change happened, which was not intended. Hopefully, they are no longer needed after the previous changes. Signed-off-by: Jared Van Bortel --- gpt4all-chat/src/modellist.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gpt4all-chat/src/modellist.cpp b/gpt4all-chat/src/modellist.cpp index f87bf7c058fba..66f7da017c544 100644 --- a/gpt4all-chat/src/modellist.cpp +++ b/gpt4all-chat/src/modellist.cpp @@ -1005,11 +1005,6 @@ void ModelList::updateData(const QString &id, const QVector if (shouldSort) resortModel(); - // 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(); }