Kaynağa Gözat

Always cache the XML output of a module.

Sascha Zelzer 12 yıl önce
ebeveyn
işleme
047ce4ecd4

+ 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)