summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-29 23:38:01 +0200
committerMontel Laurent <[email protected]>2017-09-29 23:38:15 +0200
commit4697446d950975b2d27cdfed25efb32c28503cdc (patch)
tree58b5f28205a6ce13b137bed8cddbe176c608bfba
parentbb7f35c7938e8e18ac83dcc98b43b69ac2772f6c (diff)
Add parent to qdialogbuttonbox
-rw-r--r--src/feed/feedpropertiesdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feed/feedpropertiesdialog.cpp b/src/feed/feedpropertiesdialog.cpp
index 4a6b31a..4b4d87b 100644
--- a/src/feed/feedpropertiesdialog.cpp
+++ b/src/feed/feedpropertiesdialog.cpp
@@ -76,10 +76,10 @@ FeedPropertiesDialog::FeedPropertiesDialog(QWidget *parent, const QString &name)
{
setObjectName(name);
setWindowTitle(i18n("Feed Properties"));
+ QVBoxLayout *mainLayout = new QVBoxLayout(this);
widget = new FeedPropertiesWidget(this);
- QVBoxLayout *mainLayout = new QVBoxLayout(this);
- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
+ QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);