Commit 7a118d07 authored by Laurent Montel's avatar Laurent Montel 😁

Add parent

parent 4cb9d537
......@@ -106,9 +106,9 @@ void MessageQueuer::sendOnDateClicked()
dt->setDateTime(QDateTime::currentDateTime());
dt->setDisplayFormat(QStringLiteral("hh:mm:ss"));
layout->addWidget(dt);
auto box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
connect(box, SIGNAL(accepted()), dialog, SLOT(accept()));
connect(box, SIGNAL(rejected()), dialog, SLOT(reject()));
auto box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, dialog);
connect(box, &QDialogButtonBox::accepted, dialog, &QDialog::accept);
connect(box, &QDialogButtonBox::rejected, dialog, &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