Commit 97740c23 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

bugfix for linking ViewBoxes

parent d1521dc7
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment