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