Skip to content

Fix overlay crash when opening dictionaries/wikipedia - #1694

Open
GabrielBaiano wants to merge 1 commit into
johnfactotum:gtk4from
GabrielBaiano:fix/1521-overlay-crash
Open

Fix overlay crash when opening dictionaries/wikipedia#1694
GabrielBaiano wants to merge 1 commit into
johnfactotum:gtk4from
GabrielBaiano:fix/1521-overlay-crash

Conversation

@GabrielBaiano

Copy link
Copy Markdown
Contributor

Fixes #1521.

This PR prevents Gjs/Gtk crashes when opening selection lookups (dictionary, wikipedia, translation).

It disconnects the 'closed' signal handler on its first invocation to avoid duplicate remove_overlay calls on the shared/memoized SelectionToolPopover, and adds a safety check to ensure we only remove the popover if it is still a child of the overlay.

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.

Overlay crashes the app.

1 participant