浏览代码

Always cache the XML output of a module.

Sascha Zelzer 12 年之前
父节点
当前提交
047ce4ecd4
共有 1 个文件被更改,包括 2 次插入2 次删除
  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)