Skip to content

Conversation

@sandorstormen
Copy link
Contributor

@sandorstormen sandorstormen commented Dec 6, 2025

Cursor-produced fix for the bug of #21.

@sandorstormen sandorstormen linked an issue Dec 6, 2025 that may be closed by this pull request
@mrkickling
Copy link
Contributor

I still get the error on your branch.

  1. Create attacker in a fresh MAL GUI window
  2. Load another scenario which deletes the old scene and creates a new one
RuntimeError: Internal C++ object (AttackerItem) already deleted.
Traceback (most recent call last):
  File "/home/mrkickling/Documents/github/mal-gui/mal_gui/object_explorer/attacker_item.py", line 48, in update_status_color
    if self.scene() is None:

@mrkickling
Copy link
Contributor

Found a fix (worked for me now at least). Thanks ChatGPT.

@mrkickling mrkickling merged commit 499bb0d into main Dec 9, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

GUI tries to update_status_color of deleted attacker object

3 participants