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:
Eike Ziller
2024-06-04 11:44:08 +02:00
parent 408e986f2b
commit 3c71998e34

View File

@@ -627,10 +627,14 @@ void PluginSpec::setEnabledIndirectly(bool value)
} }
void PluginSpec::setForceDisabled(bool value) void PluginSpec::setForceDisabled(bool value)
{ {
if (value)
d->forceEnabled = false;
d->forceDisabled = value; d->forceDisabled = value;
} }
void PluginSpec::setForceEnabled(bool value) void PluginSpec::setForceEnabled(bool value)
{ {
if (value)
d->forceDisabled = false;
d->forceEnabled = value; d->forceEnabled = value;
} }