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

don't use deprecated method

parent 2f206893
......@@ -286,7 +286,10 @@ void IncidenceAttachment::showAttachment(QListWidgetItem *item)
if (att->isUri()) {
Q_EMIT openURL(QUrl(att->uri()));
} else {
KRun::runUrl(mAttachmentView->tempFileForAttachment(att), att->mimeType(), nullptr, true);
KRun::RunFlags flags;
flags |= KRun::DeleteTemporaryFiles;
flags |= KRun::RunExecutables;
KRun::runUrl(mAttachmentView->tempFileForAttachment(att), att->mimeType(), nullptr, flags);
}
}
......
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