[TabWidget] Adjust the selected tab when tabs are removed
[TabWidget] Adjust the selected tab when tabs are removed

sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm