Fix #4593 Manual SELECT doesn't change active table

This should fix both issues reported in ticket:
* update breadcrumb while editing inline a query
* update breadcrumb and navigation tree while editing a query in SQL tab

Does anyone experence a JS error while editing inline a query? I get a new one since my last add, but I don't understand why…

Thanks.