Commit 3cfc43b0 authored by Andras Mantia's avatar Andras Mantia

Build with g++

parent f1a446cb
......@@ -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;
......
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