Skip to content

Bug when clicking asset in mal-gui #18

@sandorstormen

Description

@sandorstormen

When I click an asset:

Error calling Python override of QGraphicsScene::mouseReleaseEvent(): Traceback (most recent call last):
  File "/home/sandor/.local/share/pipx/venvs/mal-gui/lib/python3.13/site-packages/mal_gui/model_scene.py", line 325, in mouseReleaseEvent
    self.show_items_details()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/sandor/.local/share/pipx/venvs/mal-gui/lib/python3.13/site-packages/mal_gui/model_scene.py", line 878, in show_items_details
    self.main_window.update_properties_window(item)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/home/sandor/.local/share/pipx/venvs/mal-gui/lib/python3.13/site-packages/mal_gui/main_window.py", line 315, in update_properties_window
    default_value = attack_step.ttc['arguments'][0]
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions