Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting instances before using name popover causes index error #97

Open
ryanbugden opened this issue Jul 29, 2024 · 0 comments
Open

Sorting instances before using name popover causes index error #97

ryanbugden opened this issue Jul 29, 2024 · 0 comments

Comments

@ryanbugden
Copy link
Contributor

There seems to be an index mismatch after sorting, when dealing with the new popover from #92

Reproduce:

  • Sort Instances by something like weight
  • If the sort order has changed from what what loaded initially, double-click the [i] icon to get into the pop-over on all instances.

One of the interactions will cause this traceback.

Current workaround:

  • Close DSE2 and reopen, don't sort.
Traceback (most recent call last):
  File "lib/doodleDelegate.pyc", line 90, in sendEvent_
  File "lib/cells/doubleClickCell.pyc", line 21, in hitTestForEvent_inRect_ofView_
  File "/Users/Ryan/Library/Application Support/RoboFont/plugins/DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py", line 1463, in instancesListDoubleClickCallback
    self.instancesPopover = InstancesAttributesPopover(self.instances.list, self.operator, closeCallback=self.instancesChanged)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/Ryan/Library/Application Support/RoboFont/plugins/DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py", line 435, in __init__
    index = listView.getSelection()[0]
            ~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant