Explorar o código

Always cache the XML output of a module.

Sascha Zelzer %!s(int64=12) %!d(string=hai) anos
pai
achega
047ce4ecd4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Libs/CommandLineModules/Core/ctkCmdLineModuleManager.cpp

+ 2 - 2
Libs/CommandLineModules/Core/ctkCmdLineModuleManager.cpp

@@ -195,8 +195,8 @@ ctkCmdLineModuleManager::registerModule(const QUrl &location)
     {
       if (d->ModuleCache)
       {
-        // validation failed, cache an empty description
-        d->ModuleCache->cacheXmlDescription(location, newTimeStamp, QByteArray());
+        // validation failed, cache the description anyway
+        d->ModuleCache->cacheXmlDescription(location, newTimeStamp, xml);
       }
 
       if (d->ValidationMode == STRICT_VALIDATION)