move the comment to where it makes some sense

This commit is contained in:
Aaron Seigo 2013-02-06 17:30:35 +01:00
parent f361753682
commit 1d4f19861b

View File

@ -95,7 +95,6 @@ PluginLoader *PluginLoader::self()
Applet *PluginLoader::loadApplet(const QString &name, uint appletId, const QVariantList &args)
{
// the application-specific appletLoader failed to create an applet, here we try with our own logic.
if (name.isEmpty()) {
return 0;
}
@ -105,6 +104,7 @@ Applet *PluginLoader::loadApplet(const QString &name, uint appletId, const QVari
return applet;
}
// the application-specific appletLoader failed to create an applet, here we try with our own logic.
const QString constraint = QString("[X-KDE-PluginInfo-Name] == '%1'").arg(name);
KService::List offers = KServiceTypeTrader::self()->query("Plasma/Applet", constraint);