diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-09-08 15:15:40 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-09-11 19:56:40 +0900 |
commit | d04ac6be052f499e82f51c0d128285441b047d9c (patch) | |
tree | b839a1d4bd13edb5714c5e792e580b1dfd593766 | |
parent | ace503caa7d7d7c001a0bb246034c9737b595e1b (diff) | |
download | tdeaddons-d04ac6be052f499e82f51c0d128285441b047d9c.tar.gz tdeaddons-d04ac6be052f499e82f51c0d128285441b047d9c.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 <michele.calgaro@yahoo.it>
(cherry picked from commit 5eeb4735f315cdc470d4075f8541f79605ebb30a)
-rw-r--r-- | konq-plugins/dirfilter/dirfilterplugin.cpp | 8 |
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. |