Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pj_plugins/dialog_protocol/src/dialog_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ DialogResult DialogEngine::showDialog(QWidget* parent) {
auto* layout = new QVBoxLayout(dialog);
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(loaded);
}

// Wire buttonBox signals — works whether the loaded widget was a QDialog
// or a plain QWidget. Needed so Close/OK/Cancel buttons function correctly.
{
auto* button_box = loaded->findChild<QDialogButtonBox*>("buttonBox");
if (button_box) {
QObject::connect(button_box, &QDialogButtonBox::accepted, dialog, &QDialog::accept);
Expand Down
Loading