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 5eeb4735f3)
r14.0.x
Michele Calgaro 2 years ago
parent ace503caa7
commit d04ac6be05
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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.

Loading…
Cancel
Save