Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/pluginloader.cpp
Show First 20 Lines • Show All 859 Lines • ▼ Show 20 Line(s) | 857 | { | |||
---|---|---|---|---|---|
860 | 860 | | |||
861 | if (pluginCacheAge == 0) { | 861 | if (pluginCacheAge == 0) { | ||
862 | // Find all the plugins now, but only once | 862 | // Find all the plugins now, but only once | ||
863 | pluginCacheAge = now; | 863 | pluginCacheAge = now; | ||
864 | 864 | | |||
865 | auto insertIntoCache = [this](const QString &pluginPath) { | 865 | auto insertIntoCache = [this](const QString &pluginPath) { | ||
866 | KPluginMetaData metadata(pluginPath); | 866 | KPluginMetaData metadata(pluginPath); | ||
867 | if (!metadata.isValid()) { | 867 | if (!metadata.isValid()) { | ||
868 | qWarning() << "invalid metadata" << pluginPath; | 868 | qCWarning(LOG_PLASMA) << "invalid metadata" << pluginPath; | ||
869 | return; | 869 | return; | ||
870 | } | 870 | } | ||
871 | 871 | | |||
872 | plugins[metadata.pluginId()].append(metadata); | 872 | plugins[metadata.pluginId()].append(metadata); | ||
873 | }; | 873 | }; | ||
874 | 874 | | |||
875 | for (const QString &dir : dirs) | 875 | for (const QString &dir : dirs) | ||
876 | KPluginLoader::forEachPlugin(dir, insertIntoCache); | 876 | KPluginLoader::forEachPlugin(dir, insertIntoCache); | ||
Show All 29 Lines |