summaryrefslogtreecommitdiffstats
path: root/konq-plugins
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2022-09-08 15:15:40 +0900
committerMichele Calgaro <[email protected]>2022-09-08 15:15:40 +0900
commit5eeb4735f315cdc470d4075f8541f79605ebb30a (patch)
treec7513d50d001824f470acd6b29f9acf4482944d1 /konq-plugins
parent776f1ae10a51f36535fcd58d356a920f7e014e72 (diff)
downloadtdeaddons-5eeb4735f315cdc470d4075f8541f79605ebb30a.tar.gz
tdeaddons-5eeb4735f315cdc470d4075f8541f79605ebb30a.zip
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 <[email protected]>
Diffstat (limited to 'konq-plugins')
-rw-r--r--konq-plugins/dirfilter/dirfilterplugin.cpp8
1 files changed, 0 insertions, 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<TDEListView*>(m_part->scrollWidget()) )
- {
- static_cast<TDEListViewSearchLine*>(m_searchWidget)->updateSearch();
- }
- else if ( ::tqqt_cast<TQIconView*>(m_part->scrollWidget()) )
- {
- static_cast<TDEIconViewSearchLine*>(m_searchWidget)->updateSearch();
- }
// Make sure the filter menu is enabled once a named
// filter is removed.