diff -r 328c9a177c64 -r 78d338b6d89f src/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py --- a/src/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py Mon Jul 15 16:40:23 2024 +0200 +++ b/src/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py Tue Jul 16 15:14:23 2024 +0200 @@ -502,7 +502,7 @@ if editor.checkReadOnly(): txt = self.tr("{0} (ro)").format(txt) - assembly = editor.parent() + assembly = editor.getAssembly() index = self.indexOf(assembly) if index > -1: self.setTabText(index, txt) @@ -534,7 +534,7 @@ widget.cursorLineChanged.disconnect() widget.captionChanged.disconnect() self.editors.remove(widget) - index = self.indexOf(widget.parent()) + index = self.indexOf(widget.getAssembly()) else: index = self.indexOf(widget) if index > -1: @@ -647,7 +647,7 @@ @rtype int """ if isinstance(widget, Editor): - widget = widget.parent() + widget = widget.getAssembly() return super().indexOf(widget) def hasEditor(self, editor):