Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • Alchemy Viewer Alchemy Viewer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 83
    • Issues 83
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Alchemy Archive
  • Alchemy ViewerAlchemy Viewer
  • Merge requests
  • !4

Fixed preferences search and some typos.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Testicular Slingshot requested to merge TesticularSlingshot/alchemy:fix-pref-search into master Feb 07, 2020
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 5

I'll try explaining this as best as I can. From what I gather, the bug was caused by a fix of another bug where certain tabs were being hidden due to bVisible inside of the highlightAndHide method having a default value of false and the panel having no searchable children to iterate over, thus causing it to return false (meaning don't show the tab). The fix that was implemented returned true if the search value was empty because that would cause the tabs containing panels with no searchable children to be visible. However, the fix didn't take into account the loop that iterates over mChildPanel which would reset the highlighting on the controls within it.

My fix removes the if clause which causes the method to exit too early, and sets the default value of bVisible to true if the search result is empty. This will cause panels with mChildren being a size of 0 to unhighlight while also returning true so that the tab will also be shown. I realize after the fact that the mChildren.size() == 0 part is unnecessary, but leaving it there shouldn't cause any harm.

Edited Feb 07, 2020 by Testicular Slingshot
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-pref-search