Commit 0ce1ae9b authored by Oleg Solovyov's avatar Oleg Solovyov 🐴 Committed by Nate Graham
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


(cherry picked from commit f73c6b49)
parent 15a95ad8
Pipeline #137233 passed with stage
in 8 minutes and 35 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