Fix TDECModuleInfo::needsTest() returning always false

Properties such as this first make a call to the protected loadAll() method if the modules desktop files
have not been processed yet, but such a call was for some reason missing from the needsTest() function,
resulting in the method always returning false unless another function called loadAll() first.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit 8166c26c7a)
r14.1.x
Mavridis Philippe 3 weeks ago
parent 9be6785aaa
commit e034c819b9

@ -227,8 +227,11 @@ TDECModuleInfo::isHiddenByDefault() const
return _isHiddenByDefault;
}
bool TDECModuleInfo::needsTest() const
bool TDECModuleInfo::needsTest() const
{
if (!_allLoaded)
const_cast<TDECModuleInfo*>(this)->loadAll();
return d->testModule;
}

Loading…
Cancel
Save