--- a/Plugins/ViewManagerPlugins/Tabview/Tabview.py Fri Aug 28 12:26:10 2015 +0200 +++ b/Plugins/ViewManagerPlugins/Tabview/Tabview.py Sat Aug 29 15:41:05 2015 +0200 @@ -1097,7 +1097,14 @@ self.tabWidgets.remove(tw) tw.close() self.currentTabWidget = self.tabWidgets[i] - self.currentTabWidget.showIndicator(True) + for tw in self.tabWidgets: + tw.showIndicator(tw == self.currentTabWidget) + if self.currentTabWidget is not None: + assembly = self.currentTabWidget.currentWidget() + if assembly is not None: + editor = assembly.getEditor() + if editor is not None: + editor.setFocus(Qt.OtherFocusReason) if len(self.tabWidgets) == 1: self.splitRemoveAct.setEnabled(False) self.nextSplitAct.setEnabled(False)