forked from qt-creator/qt-creator
PluginManager: Fix -load all -noload Plugin
Setting a plugin forceDisabled must also remove the forceEnabled flag
and vice versa.
Broke in b39b192518
Change-Id: I9c2b84de0753a1b283c301b9868650e62c088144
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -627,10 +627,14 @@ void PluginSpec::setEnabledIndirectly(bool value)
|
||||
}
|
||||
void PluginSpec::setForceDisabled(bool value)
|
||||
{
|
||||
if (value)
|
||||
d->forceEnabled = false;
|
||||
d->forceDisabled = value;
|
||||
}
|
||||
void PluginSpec::setForceEnabled(bool value)
|
||||
{
|
||||
if (value)
|
||||
d->forceDisabled = false;
|
||||
d->forceEnabled = value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user