Commit c94ff862 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[thumbnail] Don't use QDir::separator() to compare paths

The plugin name always has forward slashes, even on Windows

Using the native separator causes the comparison to fail
parent c996431c
Pipeline #261775 passed with stage
in 7 minutes and 14 seconds
......@@ -654,7 +654,7 @@ ThumbCreatorWithMetadata* ThumbnailProtocol::getThumbCreator(const QString& plug
ThumbCreatorWithMetadata *thumbCreator = nullptr;
if (creator) {
KPluginMetaData data;
if (plugin.contains(QLatin1String("kf5") + QDir::separator() + QLatin1String("thumbcreator"))) {
if (plugin.contains(QLatin1String("kf5/thumbcreator"))) {
data = KPluginMetaData(plugin);
} else {
const QVector<KPluginMetaData> plugins = KIO::PreviewJob::availableThumbnailerPlugins();
......
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