Commit b8a81b73 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Merge remote-tracking branch 'origin/release/19.12'

parents d40dc43d 47d804c3
......@@ -75,6 +75,7 @@ void AttachmentFromUrlJob::Private::transferJobResult(KJob *job)
qCDebug(MESSAGECORE_LOG) << "Mimetype is" << mimeTypeName;
QString fileName = q->url().fileName();
fileName.replace(QLatin1Char('\n'), QLatin1Char('_'));
if (fileName.isEmpty()) {
QMimeDatabase db;
const auto mimeType = db.mimeTypeForName(mimeTypeName);
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