bugfix for linking ViewBoxes

This commit is contained in:
Luke Campagnola 2012-03-20 22:39:37 -04:00
parent d1521dc7ed
commit 97740c2376

View File

@ -118,7 +118,12 @@ class ViewBoxMenu(QtGui.QMenu):
view = state['linkedViews'][i]
if view is None:
view = ''
ind = c.findText(view)
if isinstance(view, basestring):
ind = c.findText(view)
else:
ind = c.findText(view.name)
if ind == -1:
ind = 0
c.setCurrentIndex(ind)