forked from qt-creator/qt-creator
Revert "Revert "ExtensionSystem: Improve warnings""
This reverts commit 54b7ba9060
.
Reason for revert: Re-revert once dcafa4b2f3b80972bf4ceffbf68b2bac2d96e5a8 in
Change-Id: I25151e36106e2701a7e464045df3d2d7ead70036
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1423,7 +1423,15 @@ void PluginManagerPrivate::loadPlugins()
|
|||||||
|
|
||||||
void PluginManagerPrivate::loadPluginsAtRuntime(const QSet<PluginSpec *> &plugins)
|
void PluginManagerPrivate::loadPluginsAtRuntime(const QSet<PluginSpec *> &plugins)
|
||||||
{
|
{
|
||||||
QTC_CHECK(allOf(plugins, [](PluginSpec *spec) { return spec->isSoftLoadable(); }));
|
const bool allSoftloadable = allOf(plugins, &PluginSpec::isSoftLoadable);
|
||||||
|
if (!allSoftloadable) {
|
||||||
|
const QStringList notSoftLoadablePlugins = Utils::transform<QStringList>(
|
||||||
|
Utils::filtered(plugins, std::not_fn(&PluginSpec::isSoftLoadable)),
|
||||||
|
&PluginSpec::displayName);
|
||||||
|
qWarning().noquote()
|
||||||
|
<< "PluginManagerPrivate::loadPluginsAtRuntime(): trying to load non-softloadable"
|
||||||
|
<< "plugin(s):" << notSoftLoadablePlugins.join(", ");
|
||||||
|
}
|
||||||
|
|
||||||
// load the plugins and their dependencies (if possible) ordered by dependency
|
// load the plugins and their dependencies (if possible) ordered by dependency
|
||||||
const QList<PluginSpec *> queue = filtered(loadQueue(), [&plugins](PluginSpec *spec) {
|
const QList<PluginSpec *> queue = filtered(loadQueue(), [&plugins](PluginSpec *spec) {
|
||||||
|
Reference in New Issue
Block a user