Commit c3b7b7e4 authored by Laurent Montel's avatar Laurent Montel 😁

Fix mem leak

parent b5ebb5e4
......@@ -351,7 +351,7 @@ void IncidenceAttachment::editSelectedAttachments()
QPointer<AttachmentEditDialog> dialog(
new AttachmentEditDialog(attitem, mAttachmentView, false));
dialog->setModal(false);
connect(dialog.data(), SIGNAL(hidden()), dialog.data(), SLOT(delayedDestruct()));
dialog->setAttribute(Qt::WA_DeleteOnClose, true);
dialog->show();
}
}
......
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