Opened 15 years ago
Closed 15 years ago
#3544 closed defect (fixed)
[PATCH] Search history remembers only last item
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
Since recent builds it seems the search history remembers only the last item and not 10 items as it was before. Seem there are no preferences related to the search that I could possibly screw up, so I guess that is a bug.
Attachments (2)
Change History (7)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Summary: | Search history remembers only last item → [PATCH] Search history remembers only last item |
---|
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Found out this was not fixed properly - you must also store copy of SearchSettings in lastSearch variable.
Now you can search for A, then for B, then for C, then you select B from history, then you search for D - and B is replaced by D in history (history is now A, D, C, D)
Attached patch fixes that
comment:5 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
I found the cause. When search settings is stored in history, a reference to object is stored instead of copy and then it is later modified by search dialog as new search is started (and therefore the searched string will be always the same as the first in history)
Attached patch fixes this.
Also, the default search history size (10 items) is IMHO small, so I have also added a setting to make it ocnfigurable (with 10 items as default)