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