Resolved a problem when the user do a search.
The search dialog didn't close. Now it is closed correctly.