Skip to content

Remove config editor delegate hack.#3167

Merged
MMathisLab merged 1 commit intoDeepLabCut:mainfrom
deruyter92:jaap/fix_gui_config_editor
Jan 9, 2026
Merged

Remove config editor delegate hack.#3167
MMathisLab merged 1 commit intoDeepLabCut:mainfrom
deruyter92:jaap/fix_gui_config_editor

Conversation

@deruyter92
Copy link
Copy Markdown
Collaborator

This commit fixes issue #3165, with the GUI DictViewer configuration editor widget.

A hack was implemented that prevented editing the config fields, using a custom QItemDelegate that caused segmentation fault when converting invalid return values in C++. This commit removes the custom delegate. The user can now edit all fieldnames.

This commit fixes issue DeepLabCut#3165, with the GUI DictViewer configuration editor widget.

A hack was implemented that prevented editing the config fields, using a custom QItemDelegate that caused segmentation fault when converting invalid return values in C++. This commit removes the custom delegate. The user can now edit all fieldnames
@deruyter92 deruyter92 requested a review from Copilot January 9, 2026 13:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes a workaround that prevented users from editing configuration field names in the GUI's DictViewer widget. The custom delegate was causing segmentation faults and unnecessarily restricted editing capabilities. The change enables full editing of configuration fields while resolving the crash issue.

Key changes:

  • Removed the CustomDelegate class that was blocking edits to the first column
  • Removed the delegate assignment from the DictViewer initialization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MMathisLab MMathisLab self-requested a review January 9, 2026 14:50
@MMathisLab MMathisLab added the bug fix! fix for a real buggy one... label Jan 9, 2026
@MMathisLab MMathisLab merged commit 00420b9 into DeepLabCut:main Jan 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix! fix for a real buggy one...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants