Skip to content

Conversation

@bmjcode
Copy link
Collaborator

@bmjcode bmjcode commented Jul 26, 2025

The issue here was that we were using a specific window's action collection to track shortcuts, but that collection no longer exists once the window is closed.

Fixes #2037.

The issue here was that we were using a specific window's action
collection to track shortcuts, but that collection no longer exists
once the window is closed.

Fixes frescobaldi#2037.
Copy link
Member

@fedelibre fedelibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't remember how to trigger this, but I trust you've verified your patch.

@bmjcode
Copy link
Collaborator Author

bmjcode commented Jul 27, 2025

If you want to check it yourself:

  1. Close the Snippets pane if it's open.
  2. Open a new window.
  3. Close the original window.
  4. Show the Snippets pane.

My patch also works if you close the second window instead in step 3. (That doesn't trigger the original bug, but would have been an issue with some of the more trivial fixes I tried.)

@bmjcode bmjcode merged commit 82dcb9a into frescobaldi:master Jul 27, 2025
@bmjcode bmjcode deleted the fix-snippet-actions branch July 27, 2025 19:46
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.

RuntimeError:wrapped C/C++ object of type QAction has been deleted

2 participants