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

Don't autodelete it

parent 029f2f18
......@@ -503,6 +503,7 @@ void KTNEFMain::slotShowMessageText()
QString rtf = mParser->message()->rtfString();
if (!rtf.isEmpty()) {
QTemporaryFile *tmpFile = new QTemporaryFile(QStandardPaths::writableLocation(QStandardPaths::TempLocation) + QLatin1String("/ktnef/") + QLatin1String("ktnef_XXXXXX.rtf"));
tmpFile->setAutoRemove(false);
tmpFile->open();
tmpFile->setPermissions(QFile::ReadUser);
tmpFile->write(rtf.toLocal8Bit());
......
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