Commit 6471873e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove connect against qdialogbuttonbox

It's already done in KMessageBox::createKMessageBox
parent 4a1ccf73
......@@ -45,8 +45,6 @@ AttachmentDialog::AttachmentDialog(QWidget *parent, const QString &filenameText,
mButtonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, dialog);
QPushButton *user1Button = new QPushButton;
mButtonBox->addButton(user1Button, QDialogButtonBox::ActionRole);
dialog->connect(mButtonBox, &QDialogButtonBox::accepted, dialog, &QDialog::accept);
dialog->connect(mButtonBox, &QDialogButtonBox::rejected, dialog, &QDialog::reject);
if (offer) {
QPushButton *user2Button = new QPushButton;
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