Bug 354133

Summary: Search as you type generates multiple anoying "end of document found, start at beginning?"
Product: [Applications] okular Reporter: Lucas Vinicius Hartmann <lucas.hartmann>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: wishlist CC: aacid
Priority: NOR    
Version First Reported In: 0.21.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lucas Vinicius Hartmann 2015-10-20 15:49:31 UTC
While search as you type is useful, if the entered text is not found in the rest of the document (current position and forward) the current implementation generates multiple queries to check whether the user wants to start search from the beginning of the document.


Reproducible: Always

Steps to Reproduce:
1. Open any document (tested with PDF).
2. Scroll down several pages.
3. Try typing anything-that_comes_to'your=mind.

Actual Results:  
Query windows at every key typed, if text is not found.

Expected Results:  
Assume default answer to either yes or no, do the search, and fail silently. The red highlight on the search text entry should be enough clue.
If the user still hits the ENTER key then the search should generate an error/warning/query window.