Commit c1ed6357 authored by Luigi Toscano's avatar Luigi Toscano

Merge remote-tracking branch 'origin/KDE/4.13'

parents 710779b7 4c4825a2
......@@ -69,8 +69,12 @@ void FilePrinterPreviewPrivate::getPart()
kDebug(500) << "querying trader for application/ps service";
KPluginFactory *factory(0);
/* Explicitly look for the Okular/Ghostview part: no other PostScript
parts are available now; other parts which handles text are not
suitable here (PostScript source code) */
KService::List offers =
KMimeTypeTrader::self()->query("application/postscript", "KParts/ReadOnlyPart");
KMimeTypeTrader::self()->query("application/postscript", "KParts/ReadOnlyPart",
"[DesktopEntryName] == 'okularghostview'");
KService::List::ConstIterator it = offers.constBegin();
while (!factory && it != offers.constEnd()) {
......
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