SWC-1680: warning on tab change
SWC-1680: add tests
Merge pull request #1175 from jay-hodgson/SWC-1680b

Swc-1680: also pop up a confirmation on tab change if editing