From d04ac6be052f499e82f51c0d128285441b047d9c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 8 Sep 2022 15:15:40 +0900 Subject: Konqueror dirfilter plugin: remove unnecessary call to updateSearch(). This avoid nested for loops over all the items in the view, which were causing increasingly longer delays each time new items were added to the list. This resolves TDE/tdelibs#165. Signed-off-by: Michele Calgaro (cherry picked from commit 5eeb4735f315cdc470d4075f8541f79605ebb30a) --- konq-plugins/dirfilter/dirfilterplugin.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/konq-plugins/dirfilter/dirfilterplugin.cpp b/konq-plugins/dirfilter/dirfilterplugin.cpp index c55b6e6..515bf12 100644 --- a/konq-plugins/dirfilter/dirfilterplugin.cpp +++ b/konq-plugins/dirfilter/dirfilterplugin.cpp @@ -419,14 +419,6 @@ void DirFilterPlugin::slotItemsAdded(const KFileItemList &list) m_pFilterMenu->setEnabled (m_part->nameFilter().isEmpty()); return; } - if ( ::tqqt_cast(m_part->scrollWidget()) ) - { - static_cast(m_searchWidget)->updateSearch(); - } - else if ( ::tqqt_cast(m_part->scrollWidget()) ) - { - static_cast(m_searchWidget)->updateSearch(); - } // Make sure the filter menu is enabled once a named // filter is removed. -- cgit v1.2.1