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)
pull/312/head
Mavridis Philippe 3 months ago
parent 9be6785aaa
commit e034c819b9

@ -229,6 +229,9 @@ TDECModuleInfo::isHiddenByDefault() const
bool TDECModuleInfo::needsTest() const bool TDECModuleInfo::needsTest() const
{ {
if (!_allLoaded)
const_cast<TDECModuleInfo*>(this)->loadAll();
return d->testModule; return d->testModule;
} }

Loading…
Cancel
Save