Stay on Tab that was opened in Detailview, when clicking Edit-Button

If you got Tabs on your Detailview, this patch opens the tab you were looking at, when clicking the Edit-Button.