summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Mantia <[email protected]>2017-10-13 14:41:17 +0300
committerAndras Mantia <[email protected]>2017-10-13 14:41:17 +0300
commit3cfc43b0ab8029797ccf79db7724c852250bd1ad (patch)
tree61b3d038d10e22736eb7961e84d8e2cd086e6687
parentf1a446cb32c174d031dd01a6d84efe5bf4197300 (diff)
Build with g++
-rw-r--r--src/kmailtransportakonadi/tests/queuer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kmailtransportakonadi/tests/queuer.cpp b/src/kmailtransportakonadi/tests/queuer.cpp
index 5e58af3..75ed0c2 100644
--- a/src/kmailtransportakonadi/tests/queuer.cpp
+++ b/src/kmailtransportakonadi/tests/queuer.cpp
@@ -107,8 +107,8 @@ void MessageQueuer::sendOnDateClicked()
dt->setDisplayFormat(QStringLiteral("hh:mm:ss"));
layout->addWidget(dt);
auto box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, dialog);
- connect(box, &QDialogButtonBox::accepted, dialog, &QDialog::accept);
- connect(box, &QDialogButtonBox::rejected, dialog, &QDialog::reject);
+ connect(box, &QDialogButtonBox::accepted, dialog.data(), &QDialog::accept);
+ connect(box, &QDialogButtonBox::rejected, dialog.data(), &QDialog::reject);
layout->addWidget(box);
if (!dialog->exec() || !dialog) {
return;