Commit f5b05b00 authored by David Faure's avatar David Faure
Browse files

Add obviously missing assignment (of mimeype name)

parent a562e193
...@@ -245,7 +245,7 @@ void KTNEFMain::viewFile() ...@@ -245,7 +245,7 @@ void KTNEFMain::viewFile()
if (mimename.isEmpty() || mimename == QLatin1String("application/octet-stream")) { if (mimename.isEmpty() || mimename == QLatin1String("application/octet-stream")) {
qCDebug(KTNEFAPPS_LOG) << "No mime type found in attachment object, trying to guess..."; qCDebug(KTNEFAPPS_LOG) << "No mime type found in attachment object, trying to guess...";
QMimeDatabase db; QMimeDatabase db;
db.mimeTypeForFile(url.path(), QMimeDatabase::MatchExtension).name(); mimename = db.mimeTypeForFile(url.path(), QMimeDatabase::MatchExtension).name();
qCDebug(KTNEFAPPS_LOG) << "Detected mime type: " << mimename; qCDebug(KTNEFAPPS_LOG) << "Detected mime type: " << mimename;
} else { } else {
qCDebug(KTNEFAPPS_LOG) << "Mime type from attachment object: " << mimename; qCDebug(KTNEFAPPS_LOG) << "Mime type from attachment object: " << mimename;
......
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