Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

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

Don't use deprecated method

parent 77cb4b07
......@@ -186,7 +186,10 @@ bool AttachmentHandler::view(const Attachment::Ptr &attachment)
// put the attachment in a temporary file and launch it
QUrl tempUrl = tempFileForAttachment(attachment);
if (tempUrl.isValid()) {
stat = KRun::runUrl(tempUrl, attachment->mimeType(), nullptr, true);
KRun::RunFlags flags;
flags |= KRun::DeleteTemporaryFiles;
flags |= KRun::RunExecutables;
stat = KRun::runUrl(tempUrl, attachment->mimeType(), nullptr, flags);
} else {
stat = false;
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