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 e81fb3d6 authored by Miklós Máté's avatar Miklós Máté Committed by Albert Astals Cid

Check all supported mime types the generator supports

Stopping on the first inherit match can prevent finding a perfect match, and thus we might enter a competition of inherit matches from other generators.

Example: spectre supports application/postscript and image/x-eps. When opening an eps the app/ps is an inherit match, but so is text/plain from the txt generator. Thanks to stable_sort() the txt generator is deterministically selected from the above two inherit matches. Unless we continue and find the perfect match, which is spectre:image/x-eps.

REVIEW: 129610
parent 1747b8b6
......@@ -2200,7 +2200,6 @@ KPluginMetaData DocumentPrivate::generatorForMimeType(const QMimeType& type, QWi
if (type.inherits(supported))
{
offers << md;
break;
}
}
}
......
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