From f7abc568bcafceeb97b1d5daa3424ac20f6aedd9 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Wed, 11 Jul 2012 22:55:03 +0200 Subject: [PATCH] Correctly start a search if Return is pressed after a back search FindNext was early quitting because the previous search was a back search and thus never got to startSearch, now we call startSearch if m_changed BUGS: 301248 FIXED-IN: 4.9.0 --- ui/searchlineedit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/searchlineedit.cpp b/ui/searchlineedit.cpp index 21c4d562a..101e60aef 100644 --- a/ui/searchlineedit.cpp +++ b/ui/searchlineedit.cpp @@ -173,7 +173,10 @@ void SearchLineEdit::slotReturnPressed( const QString &text ) { m_inputDelayTimer->stop(); prepareLineEditForSearch(); - findNext(); + if ( m_changed ) + startSearch(); + else + findNext(); } void SearchLineEdit::startSearch()