From kde-commits Sat Jan 24 20:37:12 2004 From: =?utf-8?q?Lu=C3=ADs=20Pedro=20Coelho?= Date: Sat, 24 Jan 2004 20:37:12 +0000 To: kde-commits Subject: kdelibs/khtml Message-Id: <20040124203712.A5A7991D4 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=107497667316038 CVS commit by luis_pedro: Reset the found counter when the to-search string changes. Ok'd by dfaure. M +4 -1 khtml_part.cpp 1.963 --- kdelibs/khtml/khtml_part.cpp #1.962:1.963 @@ -2618,5 +2618,8 @@ void KHTMLPart::findTextNext() if ( d->m_findDialog ) // 0 when we close the dialog { + if ( d->m_find->pattern() != d->m_findDialog->pattern() ) { d->m_find->setPattern( d->m_findDialog->pattern() ); + d->m_find->resetCounts(); + } long options = d->m_findDialog->options(); if ( d->m_lastFindState.options != options )