Commit 08e8891d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use qobject_cast

parent 8c5b56ce
......@@ -773,7 +773,7 @@ void AttachmentControllerBase::viewAttachment(const AttachmentPart::Ptr &part)
void AttachmentControllerBase::Private::slotAttachmentContentCreated(KJob *job)
if (!job->error()) {
const MessageComposer::AttachmentJob *const attachmentJob = dynamic_cast<MessageComposer::AttachmentJob *>(job);
const MessageComposer::AttachmentJob *const attachmentJob = qobject_cast<MessageComposer::AttachmentJob *>(job);
if (attachmentJob) {
Q_EMIT q->showAttachment(attachmentJob->content(), QByteArray());
Supports Markdown
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