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

in darkroom don't allow dragging libs to right or iops to left #17462

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

dterrahe
Copy link
Member

When a lib's header is dragged into an empty panel, it is responsible for moving itself there. It would happily put itself in the right panel in the darkroom if it is empty (for example because the search box has nonsense in it), but then crash on switching to lighttable. Similarly, when an iop is dragged into an empty panel it cannot be the right one (because that's where you're dragging it from, so it isn't empty), so it is the left one and the drop must be blocked. Before this fix, the cursor would indicate that a drop is allowed and actually dropping an iop on the left side would generate a bunch of Gtk-CRITICALS.

Also, since it is now possible to hide the iop-order module (bottom right), first check that there actually is an expander before trying to set its second label.

@TurboGit TurboGit added this to the 5.0 milestone Sep 11, 2024
@TurboGit TurboGit added bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes scope: UI user interface and interactions labels Sep 11, 2024
@TurboGit TurboGit self-requested a review September 11, 2024 06:44
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

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

Works for me, thanks!

@TurboGit TurboGit merged commit 9b0e9e7 into darktable-org:master Sep 11, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes scope: UI user interface and interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants