aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-29 23:26:44 +0200
committerMontel Laurent <[email protected]>2017-09-29 23:26:44 +0200
commit22f78d2fa57c324116768d3c0b8ed1e82520d5b7 (patch)
tree7f74a65cac769726d69c727458258ce465dd83b0
parent62b573f662f6c6cb194d1bcb5dadc4a54d8e33b2 (diff)
Add parent to qdialogbuttonbox
-rw-r--r--src/widgets/gravatardownloadpixmapdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/gravatardownloadpixmapdialog.cpp b/src/widgets/gravatardownloadpixmapdialog.cpp
index b8e4ea2..d612918 100644
--- a/src/widgets/gravatardownloadpixmapdialog.cpp
+++ b/src/widgets/gravatardownloadpixmapdialog.cpp
@@ -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);