bugfix for linking ViewBoxes
This commit is contained in:
parent
d1521dc7ed
commit
97740c2376
@ -118,7 +118,12 @@ class ViewBoxMenu(QtGui.QMenu):
|
|||||||
view = state['linkedViews'][i]
|
view = state['linkedViews'][i]
|
||||||
if view is None:
|
if view is None:
|
||||||
view = ''
|
view = ''
|
||||||
|
|
||||||
|
if isinstance(view, basestring):
|
||||||
ind = c.findText(view)
|
ind = c.findText(view)
|
||||||
|
else:
|
||||||
|
ind = c.findText(view.name)
|
||||||
|
|
||||||
if ind == -1:
|
if ind == -1:
|
||||||
ind = 0
|
ind = 0
|
||||||
c.setCurrentIndex(ind)
|
c.setCurrentIndex(ind)
|
||||||
|
Loading…
Reference in New Issue
Block a user