Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit eca2e4c2 authored by Laurent Montel's avatar Laurent Montel 😁

Add parent to qdialogbuttonbox

parent fef6c307
......@@ -108,7 +108,7 @@ void AttachmentPropertiesDialog::Private::polishUi()
QDialogButtonBox *buttonBox = nullptr;
if (mReadOnly) {
buttonBox = new QDialogButtonBox(QDialogButtonBox::Help | QDialogButtonBox::Close);
buttonBox = new QDialogButtonBox(QDialogButtonBox::Help | QDialogButtonBox::Close, q);
} else {
// Update the icon when the selected mime type changes.
......@@ -116,7 +116,7 @@ void AttachmentPropertiesDialog::Private::polishUi()
q, SLOT(mimeTypeChanged(QString)));
populateMimeTypes();
populateEncodings();
buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help);
buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, q);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment