diff options
author | Mavridis Philippe <[email protected]> | 2024-09-04 23:18:56 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2024-09-04 23:18:56 +0300 |
commit | 8166c26c7aae21e6851dc72a5b5148aaabd27236 (patch) | |
tree | 627a67125e840e1ecb38951f2b3812fcefc0e222 | |
parent | 53e7aa7eaf1c43e6ee0b84f2be52a947a09af20c (diff) | |
download | tdelibs-8166c26c7aae21e6851dc72a5b5148aaabd27236.tar.gz tdelibs-8166c26c7aae21e6851dc72a5b5148aaabd27236.zip |
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 <[email protected]>
-rw-r--r-- | tdeutils/tdecmoduleinfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tdeutils/tdecmoduleinfo.cpp b/tdeutils/tdecmoduleinfo.cpp index 9eeac6585..b94603601 100644 --- a/tdeutils/tdecmoduleinfo.cpp +++ b/tdeutils/tdecmoduleinfo.cpp @@ -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; } |