progwolff created this revision. progwolff added a reviewer: aacid. Restricted Application added a subscriber: Okular. Restricted Application added a project: Okular.
REVISION SUMMARY BUG: 386600 Applications using Okular as a KPart might set a file's mime type in the OpenUrlArguments. Okular currently clears this arguments while opening a document. This revision fixes this, allowing applications to actually pass a file's mime type to Okular. TEST PLAN Opened documents with mime type "text/markdown" and "application/rtf" in kate, using the new preview plugin. The embedded Okular KPart displays these files correctly. REPOSITORY R223 Okular BRANCH Applications/17.08 REVISION DETAIL https://phabricator.kde.org/D8690 AFFECTED FILES part.cpp To: progwolff, aacid Cc: #okular, aacid