Commit f73c6b49 authored by Oleg Solovyov's avatar Oleg Solovyov 🐴
Browse files

Clean up "empty" mimeType containg only whitespaces

When mimeType == " " - KApplicationTrader tries to find out which
application should be used.

This is not what we want
parent 25bfe782
Pipeline #137232 passed with stage
in 8 minutes and 12 seconds
......@@ -375,7 +375,7 @@ bool RecentUsageModel::trigger(int row, const QString &actionId, const QVariant
// prevents using a service file that does not support opening a mime type for a file it created
// for instance a screenshot tool
if (!mimeType.isEmpty()) {
if (!mimeType.simplified().isEmpty()) {
if (!service->hasMimeType(mimeType)) {
// needs to find the application that supports this mimetype
service = KApplicationTrader::preferredService(mimeType);
Supports Markdown
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