Commit 5c3ba759 authored by Laurent Montel's avatar Laurent Montel 😁

Don't use deprecated method

parent 1db83dc6
......@@ -1037,7 +1037,9 @@ public:
file->write(QByteArray::fromBase64(attachment->data()));
file->close();
bool stat = KRun::runUrl(QUrl::fromLocalFile(file->fileName()), attachment->mimeType(), 0, true);
KRun::RunFlags flags;
flags |= KRun::DeleteTemporaryFiles;
bool stat = KRun::runUrl(QUrl::fromLocalFile(file->fileName()), attachment->mimeType(), nullptr, flags);
delete file;
return stat;
}
......
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