Commit d55d1487 authored by Nicolas Fella's avatar Nicolas Fella Committed by Elvis Angelaccio
Browse files

Don't consider okteta for previewing files

The oktetapart can handle any file, but a hex viewer isn't useful for

Skip it to prefer an external viewer instead
parent c987231c
Pipeline #179295 passed with stage
in 3 minutes and 4 seconds
......@@ -248,6 +248,17 @@ KService::Ptr ArkViewer::getInternalViewer(const QString& mimeType)
// The oktetapart can open any file, but a hex viewer isn't really useful here
// Skip it so we prefer an external viewer instead
auto oktetaPart = std::find_if(offers.begin(), offers.end(), [](KService::Ptr service) {
return service->desktopEntryName() == QLatin1String("oktetapart");
if (oktetaPart != offers.end()) {
if (!offers.isEmpty()) {
return offers.first();
} else {
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