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

Prevent reparenting a tag to itself #1151

Merged

Conversation

gycsaba96
Copy link
Contributor

Similarly to PR #1149, it was possible to reparent a tag to itself using drag-and-drop. Sidebar.check_parent now checks if the drop target is the same tag we are moving.

Steps to reproduce the bug:

  1. Pick a tag and start dragging it over another tag.
  2. Move it back over itself, and drop it.
  3. Observe the program freezing and eventually running out of memory.

(If it is not against any current plans, I would be happy to experiment with a common StoreItem base class or something similar to prevent such duplicated bugs.)

Sidebar.check_parent now checks if the drop target is the same
tag we are moving.
@diegogangl diegogangl added the bug label Nov 4, 2024
@diegogangl diegogangl merged commit 70149ce into getting-things-gnome:master Nov 4, 2024
1 check passed
@diegogangl
Copy link
Contributor

Merged, thanks!

(If it is not against any current plans, I would be happy to experiment with a common StoreItem base class or something similar to prevent such duplicated bugs.)

Sure, the only plan right now is to stabilize and release 0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants