mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-05 23:49:20 +00:00
Merge remote-tracking branch 'origin/KDE/4.13'
This commit is contained in:
commit
c1ed635770
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue