mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-15 10:22:26 +12:00
Fix isTarget not being respected when selecting outline items
This commit is contained in:
parent
22609fa1fd
commit
0c12838610
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue