Fix isTarget not being respected when selecting outline items

This commit is contained in:
tcsch 2022-08-12 17:39:54 +02:00
parent 22609fa1fd
commit 0c12838610

View file

@ -214,6 +214,11 @@ class mainEditor(QWidget, Ui_mainEditor):
title = self.getIndexTitle(index)
if tabWidget == None:
# no tabWidget specified, update all tabs of views that are a target
for ts in self.allTabSplitters():
if ts.isTarget:
self.setCurrentModelIndex(index, newTab, tabWidget=ts.tab)
# additionally always update the current tabWidget
tabWidget = self.currentTabWidget()
# Checking if tab is already opened