summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-07-01 07:52:42 +0200
committerMontel Laurent <[email protected]>2016-07-01 07:52:42 +0200
commitd018e7ef3da9c0de3341ff3df530602d465f444a (patch)
tree3f611ad8d9481002d54af5640e3d1fbcb1558d9f
parent812ae2ce9eca844973fc0407693e042eefdecf9f (diff)
Connect qdialogbuttonbox
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/sendattachments/checkattachmentdialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/sendattachments/checkattachmentdialog.cpp b/kmail/editorsendcheckplugins/checkbeforesend/sendattachments/checkattachmentdialog.cpp
index 29b9c70..0cd8965 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/sendattachments/checkattachmentdialog.cpp
+++ b/kmail/editorsendcheckplugins/checkbeforesend/sendattachments/checkattachmentdialog.cpp
@@ -40,6 +40,8 @@ CheckAttachmentDialog::CheckAttachmentDialog(QWidget *parent)
QDialogButtonBox * buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel, this);
buttonBox->setObjectName(QStringLiteral("buttonbox"));
+ connect(buttonBox, &QDialogButtonBox::accepted, this, &CheckAttachmentDialog::accept);
+ connect(buttonBox, &QDialogButtonBox::rejected, this, &CheckAttachmentDialog::reject);
mainLayout->addWidget(buttonBox);
readConfig();
}