Bug 402299 - Refresh button in Find/Replace in Files view clears previous search
Summary: Refresh button in Find/Replace in Files view clears previous search
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.5.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-18 13:34 UTC by Martin Fuhrer
Modified: 2020-03-20 13:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fuhrer 2018-12-18 13:34:59 UTC
SUMMARY
Clicking the Refresh button in the Find/Replace in Files tool view doesn't perform a refresh; rather, it clears the previous search.

STEPS TO REPRODUCE
1. Open the Find/Replace in Files tool view. 
2. Click the New Search button.
3. Enter a search pattern and click Search...
4. Any matched patterns will be displayed in the tool view panel.
5. Click the Refresh button.

OBSERVED RESULT

Matched patterns will be cleared from the view panel and the last search is removed from the drop-down menu (similar to clicking the Clear Search History button, except in this case only the last search is removed).

EXPECTED RESULT

The search on the pattern should be repeated. 

ADDITIONAL INFORMATION
Comment 1 Martin Fuhrer 2018-12-18 13:45:14 UTC
Ran some additional tests and found that the Refresh button works as expected if no project is loaded. If I open a project (mine is Makefile-based), then performing a search as described and clicking Refresh clears the search.
Comment 2 Piotr Keplicz 2020-03-20 13:11:29 UTC
The "Refresh" button in 5.5.0 still repeates the *previous* search not the current one. The current one is deleted until no searches are left.