Search doesn't save search exclusions to the dropdown search history list

Bug #243201 reported by Diesel Grapes
2
Affects Status Importance Assigned to Milestone
DC++
Fix Released
Low
Unassigned

Bug Description

Summary says all the info, here's the steps to reproduce:

1. open search and type "Jimi Hendrix" w/o quotes
2. search "soul sessions -joss" w/o quotes
3. the dropdown list has now two items: "Jimi Hendrix" and "soul sessions" (w/o quotes again)

That's it. Pretty simple. No search exclusions saved.

DC++ 0.707
Win XP Pro SP2

eMTee (realprogger)
Changed in dcplusplus:
status: New → Confirmed
Revision history for this message
eMTee (realprogger) wrote :

I think it behaves like that for serveral years. After starting a search it strips out all filter words (started with -) from the search string for displaying purposes, but it adds the stripped search string to the search history as well. I can't decide its really a bug or happens by purpose, but its probably better to keep the original text in the history...
If its a bug then the attached patch should solve this...

Revision history for this message
Jacek Sieka (arnetheduck) wrote :

I'd say it's a bug - it would be better if you saved the original string in a tmp variable instead of doing getText each time though,..

Changed in dcplusplus:
status: Confirmed → In Progress
Revision history for this message
eMTee (realprogger) wrote :

There is an easier solution as the original string is in a tmp variable which is reused later for the stripped ones. So only moved the fill of the dropdown to a bit earlier...

Changed in dcplusplus:
importance: Undecided → Low
poy (poy)
Changed in dcplusplus:
status: In Progress → Fix Committed
MikeJJ (mrmikejj)
Changed in dcplusplus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.