Parcourir la source

Always cache the XML output of a module.

Sascha Zelzer il y a 13 ans
Parent
commit
047ce4ecd4
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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)