diff options
author | Mavridis Philippe <[email protected]> | 2024-09-04 23:18:56 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2024-09-08 01:33:32 +0300 |
commit | e034c819b9f578c5b4b468626846a22e84d55a8f (patch) | |
tree | b37411ac0acce35b06a9d4e0d5d5428fff2b9581 | |
parent | 9be6785aaad1f2711bafd52fd04e7f3f2fab236e (diff) | |
download | tdelibs-e034c819b9f578c5b4b468626846a22e84d55a8f.tar.gz tdelibs-e034c819b9f578c5b4b468626846a22e84d55a8f.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]>
(cherry picked from commit 8166c26c7aae21e6851dc72a5b5148aaabd27236)
-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; } |