Skip to content

collect: keep auto-filled search entries out of the display filter - #23366

Merged
TurboGit merged 1 commit into
darktable-org:masterfrom
zisoft:fix-collection-regression-2
Dec 5, 2026
Merged

TurboGit merged 1 commit into
darktable-org:masterfrom
zisoft:fix-collection-regression-2

Conversation

@zisoft

@zisoft zisoft commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Follow up to #23355

Summary

The skip flag set by row selection was cleared right after the view refresh, so it only suppressed the very first pass. Any later refresh - notably returning from darkroom - ran the display filter on the auto-filled entry text and collapsed the list to the single selected row.

Keep the flag set until the user actually types into the entry; programmatic writes block the entry-changed signal anyway, so the flag survives them and only real typing re-enables the filter.

Referenced issue

fixes #23349

Checklist

  • I have read CONTRIBUTING.md and the coding style.
  • I have not merged master into the topic branch.
  • The pull request is one logical change, and every commit compiles on its own. You may use git rebase --exec 'cmake --build build' master to check this.
  • I ran the relevant tests: unit tests, src/tests/integration/ where the pixelpipe is touched, or darktable-cli as a headless smoke test.
  • New user-visible strings use _(), new preferences are registered in data/darktableconfig.xml.in.
  • A RELEASE_NOTES.md entry was added (only needed if fixing an issue in a release). Do not reference GitHub issues.

AI assistance

local LLM Qwen3.8-27B-4bit

@zisoft zisoft added bugfix pull request fixing a bug scope: DAM managing files, collections, archiving, metadata, etc. priority: release critical cannot release until fixed labels Dec 5, 2026
@zisoft zisoft added this to the 5.8 milestone Dec 5, 2026
@TurboGit
TurboGit requested a balanced review from Copilot December 5, 2026 08:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

After selecting a row, applying a preset with different search text leaves the display-filter bypass enabled, so the restored search shows all proposals instead of only matching ones.

1 open issue
What changed in this PR

Extends the collections fix so later refreshes, including returning from darkroom, do not filter the proposal list using auto-filled selection text.

Changes:

  • Keeps display-filter suppression active after row selection.
  • Clears suppression when the entry changes.
  • Updates comments to explain the persistent behavior.
File Description
src/​libs/​collect.c Preserves selection-related filter suppression across refreshes and resets it on entry changes.

Review effort: Balanced

Comment thread src/libs/collect.c Resolved
The skip flag set by row selection was cleared right after the view
refresh, so it only suppressed the very first pass. Any later refresh -
notably returning from darkroom - ran the display filter on the
auto-filled entry text and collapsed the list to the single selected
row.

Keep the flag set until the user actually types into the entry;
programmatic writes block the entry-changed signal anyway, so the
flag survives them and only real typing re-enables the filter.
@zisoft
zisoft force-pushed the fix-collection-regression-2 branch from c1025ee to 4f8811d Compare December 5, 2026 08:31

@TurboGit TurboGit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks!

@TurboGit
TurboGit merged commit 0670bac into darktable-org:master Dec 5, 2026
7 checks passed
@zisoft
zisoft deleted the fix-collection-regression-2 branch December 5, 2026 10:12
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: release critical cannot release until fixed scope: DAM managing files, collections, archiving, metadata, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Double clicking a folder in collections hides other folders (regression?)

3 participants