Commit 22f78d2f authored by Laurent Montel's avatar Laurent Montel 😁

Add parent to qdialogbuttonbox

parent 62b573f6
......@@ -31,7 +31,7 @@ GravatarDownloadPixmapDialog::GravatarDownloadPixmapDialog(QWidget *parent)
mGravatarDownloadPixmapWidget = new Gravatar::GravatarDownloadPixmapWidget(this);
mGravatarDownloadPixmapWidget->setObjectName(QStringLiteral("gravatarwidget"));
mainLayout->addWidget(mGravatarDownloadPixmapWidget);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
buttonBox->setObjectName(QStringLiteral("buttonbox"));
connect(buttonBox, &QDialogButtonBox::accepted, this, &GravatarDownloadPixmapDialog::slotAccepted);
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
......
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