webengine/widgetregistry/Server/src/WidgetRegistry.cpp
branchRCL_3
changeset 50 d96eed154187
parent 49 919f36ff910f
--- a/webengine/widgetregistry/Server/src/WidgetRegistry.cpp	Wed Sep 01 12:28:30 2010 +0100
+++ b/webengine/widgetregistry/Server/src/WidgetRegistry.cpp	Tue Sep 14 23:23:58 2010 +0300
@@ -739,6 +739,23 @@
         AppArchListConsistency( appArchList, appArchListFlags );
         }
 
+
+    //Do we need consistency check
+    //Quick hack to see if we need consistency check 
+    if(!doConsistency)
+        {
+        AppArchWidgets( appArchList, appArchListFlags );    
+        TInt wrtWidgetCount(0);
+        for(TInt i =0;i<iEntries.Count();i++)
+            {
+            CWidgetEntry* entry = iEntries[i];
+            if(!TUidAllocator::IsCWRTWidget(TUid::Uid((*entry)[EUid])))
+                wrtWidgetCount++;
+            }		   	
+        if(appArchList.Count()!=wrtWidgetCount)
+            aParseError = ETrue;//need consistency
+        }    
+    
     CleanupStack::PopAndDestroy( 2, &appArchList );//appArchListFlags, appArchList
 
     aDirtyFlag = dirtyFlag;