Git commit 78d740aece90b676086412f977d4cd691791bd8f by Alex Richardson. Committed on 30/11/2015 at 20:39. Pushed by arichardson into branch 'master'. Fix regression caused by RR 125527 Make sure that applications using kcoreaddons_desktop_to_json() that depend on reading the MimeType property of the root object still work See https://git.reviewboard.kde.org/r/125527/ REVIEW: 126196 M +3 -0 src/lib/plugin/desktopfileparser.cpp http://commits.kde.org/kcoreaddons/78d740aece90b676086412f977d4cd691791bd8f diff --git a/src/lib/plugin/desktopfileparser.cpp b/src/lib/plugin/desktopf= ileparser.cpp index 56f8bc9..f65444f 100644 --- a/src/lib/plugin/desktopfileparser.cpp +++ b/src/lib/plugin/desktopfileparser.cpp @@ -401,6 +401,9 @@ void DesktopFileParser::convertToJson(const QByteArray = &key, const ServiceTypeDe } else if (key =3D=3D QByteArrayLiteral("MimeType")) { // MimeType is a XDG string list and not a KConfig list so we need= to use ';' as the separator kplugin[QStringLiteral("MimeTypes")] =3D QJsonArray::fromStringLis= t(deserializeList(value, ';')); + // make sure that applications using kcoreaddons_desktop_to_json()= that depend on reading + // the MimeType property still work (see https://git.reviewboard.k= de.org/r/125527/) + json[QStringLiteral("MimeType")] =3D value; // TODO KF6 remove thi= s compatibility code } else if (key =3D=3D QByteArrayLiteral("X-KDE-FormFactors")) { kplugin[QStringLiteral("FormFactors")] =3D QJsonArray::fromStringL= ist(deserializeList(value)); } else if (key =3D=3D QByteArrayLiteral("X-KDE-PluginInfo-EnabledByDef= ault")) {