Fixed bug causing continuous refresh of filterbar, thereby preventing scrolling in Konqueror iconview mode

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1134358 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 15 years ago
parent e093d5d571
commit 8a34a88474

@ -145,7 +145,8 @@ DirFilterPlugin::DirFilterPlugin (QObject* parent, const char* name,
const QStringList&)
:KParts::Plugin (parent, name),
m_pFilterMenu(0),
m_searchWidget(0)
m_searchWidget(0),
m_oldFilterString("")
{
m_part = ::qt_cast<KonqDirPart*>(parent);
@ -473,6 +474,14 @@ void DirFilterPlugin::slotItemRemoved (const KFileItem* item)
void DirFilterPlugin::activateSearch()
{
if (!m_searchWidget)
return;
if (m_oldFilterString == m_searchWidget->text())
return;
m_oldFilterString = m_searchWidget->text();
if ( ::qt_cast<KListView*>(m_part->scrollWidget()) ) {
static_cast<KListViewSearchLine*>(m_searchWidget)->updateSearch();
}

@ -127,6 +127,7 @@ private:
KonqDirPart* m_part;
QTimer *m_refreshTimer;
KActionMenu* m_pFilterMenu;
QString m_oldFilterString;
KLineEdit *m_searchWidget;
QMap<QString,MimeInfo> m_pMimeInfo;

Loading…
Cancel
Save