use the standard MimeTypes key, not our own messed up variant of it

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696780
This commit is contained in:
Aaron J. Seigo 2007-08-05 21:52:35 +00:00
parent 6a6c508036
commit c68077c56e

View File

@ -854,8 +854,8 @@ KPluginInfo::List Applet::knownApplets(const QString &category,
KPluginInfo::List Applet::knownAppletsForMimetype(const QString &mimetype)
{
QString constraint = QString("'%1' in [X-Plasma-Mimetypes]").arg(mimetype);
kDebug() << constraint;
QString constraint = QString("'%1' in MimeTypes").arg(mimetype);
//kDebug() << "knownAppletsForMimetype with" << mimetype << constraint;
KService::List offers = KServiceTypeTrader::self()->query("Plasma/Applet", constraint);
return KPluginInfo::fromServices(offers);
}