forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.7'
Conflicts: src/plugins/qnx/blackberrydeployconfiguration.cpp Change-Id: I16d1c7717f4bc25ba7e8dbdd5be6580fafe3f33d
This commit is contained in:
@@ -335,7 +335,7 @@ bool PluginManager::hasError()
|
||||
{
|
||||
foreach (PluginSpec *spec, plugins()) {
|
||||
// only show errors on startup if plugin is enabled.
|
||||
if (spec->hasError() && spec->isEnabled() && !spec->isDisabledIndirectly())
|
||||
if (spec->hasError() && spec->isEnabledInSettings() && !spec->isDisabledIndirectly())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -609,6 +609,9 @@ static inline void formatOption(QTextStream &str,
|
||||
|
||||
void PluginManager::formatOptions(QTextStream &str, int optionIndentation, int descriptionIndentation)
|
||||
{
|
||||
formatOption(str, QLatin1String(OptionsParser::LOAD_OPTION),
|
||||
QLatin1String("plugin"), QLatin1String("Load <plugin>"),
|
||||
optionIndentation, descriptionIndentation);
|
||||
formatOption(str, QLatin1String(OptionsParser::NO_LOAD_OPTION),
|
||||
QLatin1String("plugin"), QLatin1String("Do not load <plugin>"),
|
||||
optionIndentation, descriptionIndentation);
|
||||
@@ -882,9 +885,9 @@ void PluginManagerPrivate::writeSettings()
|
||||
QStringList tempDisabledPlugins;
|
||||
QStringList tempForceEnabledPlugins;
|
||||
foreach (PluginSpec *spec, pluginSpecs) {
|
||||
if (!spec->isDisabledByDefault() && !spec->isEnabled())
|
||||
if (!spec->isDisabledByDefault() && !spec->isEnabledInSettings())
|
||||
tempDisabledPlugins.append(spec->name());
|
||||
if (spec->isDisabledByDefault() && spec->isEnabled())
|
||||
if (spec->isDisabledByDefault() && spec->isEnabledInSettings())
|
||||
tempForceEnabledPlugins.append(spec->name());
|
||||
}
|
||||
|
||||
@@ -1120,7 +1123,7 @@ void PluginManagerPrivate::loadPlugin(PluginSpec *spec, PluginSpec::State destSt
|
||||
return;
|
||||
|
||||
// don't load disabled plugins.
|
||||
if ((spec->isDisabledIndirectly() || !spec->isEnabled()) && destState == PluginSpec::Loaded)
|
||||
if (!spec->isEffectivelyEnabled() && destState == PluginSpec::Loaded)
|
||||
return;
|
||||
|
||||
switch (destState) {
|
||||
@@ -1249,6 +1252,11 @@ void PluginManagerPrivate::resolveDependencies()
|
||||
foreach (PluginSpec *spec, pluginSpecs) {
|
||||
spec->d->resolveDependencies(pluginSpecs);
|
||||
}
|
||||
|
||||
// Reset disabledIndirectly flag
|
||||
foreach (PluginSpec *spec, loadQueue())
|
||||
spec->d->disabledIndirectly = false;
|
||||
|
||||
foreach (PluginSpec *spec, loadQueue()) {
|
||||
spec->d->disableIndirectlyIfDependencyDisabled();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user