summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-29 23:26:27 +0200
committerMontel Laurent <[email protected]>2017-09-29 23:26:27 +0200
commit747148a27697d7f550cf19c74f9ae41c49d30358 (patch)
treeb9b44254e437844505841b612c963b7a0c9a6288
parenteb89ec05068baa4a98d54199dbd9bdbf1012568a (diff)
Add parent to qdialogbuttonbox
-rw-r--r--src/print/knoteprintselectednotesdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print/knoteprintselectednotesdialog.cpp b/src/print/knoteprintselectednotesdialog.cpp
index 3182bd3..0902d6c 100644
--- a/src/print/knoteprintselectednotesdialog.cpp
+++ b/src/print/knoteprintselectednotesdialog.cpp
@@ -39,8 +39,8 @@ KNotePrintSelectedNotesDialog::KNotePrintSelectedNotesDialog(QWidget *parent)
, mPreview(false)
{
setWindowTitle(i18n("Select notes"));
- mButtonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
+ mButtonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = mButtonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);