Saving settings when performing a search

Signed-off-by: Daniel Dahlkvist <messer_@hotmail.com>