Skip to content

fix(dialog-sdk): wire buttonBox for QDialog roots#50

Merged
pabloinigoblasco merged 1 commit into
developmentfrom
fix/dialog-buttonbox-qdialog
Apr 13, 2026
Merged

fix(dialog-sdk): wire buttonBox for QDialog roots#50
pabloinigoblasco merged 1 commit into
developmentfrom
fix/dialog-buttonbox-qdialog

Conversation

@pabloinigoblasco
Copy link
Copy Markdown
Collaborator

@pabloinigoblasco pabloinigoblasco commented Apr 13, 2026

Summary

  • When a plugin .ui file uses QDialog as the root widget (instead of a plain QWidget), the buttonBox accept/reject signals were not connected — Close/OK/Cancel buttons did nothing
  • The wiring code was inside the "wrap in QDialog" branch that only runs for non-QDialog roots
  • Fix: move the buttonBox connection to its own unconditional block

Test plan

  • Open a plugin dialog whose .ui root is a QDialog with a QDialogButtonBox named buttonBox — Close button works
  • Open a plugin dialog whose .ui root is a plain QWidget — OK/Cancel still work as before

When the plugin .ui file uses a QDialog as root widget (instead of a
plain QWidget), the buttonBox accept/reject signals were not connected
because the wiring code lived inside the "wrap in QDialog" branch that
only runs for non-QDialog roots.

Move the buttonBox connection to its own block that runs unconditionally,
so Close/OK/Cancel buttons work regardless of the .ui root widget type.
@pabloinigoblasco pabloinigoblasco merged commit abd98b2 into development Apr 13, 2026
2 checks passed
pabloinigoblasco added a commit that referenced this pull request Apr 15, 2026
Sync from GitHub development:
- PR #43: feat(dialog_sdk): add code editor widget support
- PR #46: refactor(manifest): enforce array type for encoding field
- PR #50: fix(dialog-sdk): wire buttonBox for QDialog roots

# Conflicts:
#	pj_plugins/dialog_protocol/include/pj_plugins/host/widget_event_builder.hpp
#	pj_plugins/dialog_protocol/include/pj_plugins/sdk/dialog_plugin_typed.hpp
#	pj_plugins/dialog_protocol/include/pj_plugins/sdk/widget_event.hpp
@pabloinigoblasco pabloinigoblasco deleted the fix/dialog-buttonbox-qdialog branch May 4, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant