Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 149bde77 authored by Laurent Montel's avatar Laurent Montel 😁

We just need filename

parent de01f3e2
......@@ -1082,11 +1082,12 @@ public:
file->setPermissions(QFile::ReadUser);
file->write(QByteArray::fromBase64(a->data()));
file->close();
const QString filename = file->fileName();
delete file;
auto job = KIO::file_copy(QUrl::fromLocalFile(file->fileName()), QUrl::fromLocalFile(saveAsFile));
auto job = KIO::file_copy(QUrl::fromLocalFile(filename), QUrl::fromLocalFile(saveAsFile));
stat = job->exec();
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