When query clicked on query history, set the query to query editor.
Merge branch 'set_editor_from_history'