Ensure Favourite queries are only saved when the OK button is pressed

Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>
Save search options for next time

Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>