homescreenapp/hsdomainmodel/src/hswidgetcomponentregistry.cpp
changeset 62 341166945d65
parent 55 03646e8da489
child 69 87476091b3f5
--- a/homescreenapp/hsdomainmodel/src/hswidgetcomponentregistry.cpp	Thu Jun 24 13:11:40 2010 +0100
+++ b/homescreenapp/hsdomainmodel/src/hswidgetcomponentregistry.cpp	Fri Jun 25 19:19:22 2010 +0300
@@ -38,8 +38,8 @@
     \ingroup group_hsdomainmodel
     \brief Homescreen widget component registry.
 
-    Homescreen widget component registry keeps track of packages from which is(are) 
-    created widget(s) to homescreen page(s). Registry updates its content
+    Widget component registry contains HsWidgetComponent instances. All widget instances from same type 
+    are refering to one HsWidgetComponent. Registry updates its content
     when the installation package is uninstalled/updated or installation location is( or is not)
 	available (media attached/detached). Registry takes care of package registration/unregistration
 	to Qt service framework.
@@ -92,7 +92,7 @@
 */
 void HsWidgetComponentRegistry::uninstallComponent(const HsWidgetComponentDescriptor &componentDescriptor)
 {
-    HsWidgetComponent *component = mRegistry.value(componentDescriptor.uri);
+    HsWidgetComponent *component = mRegistry.value(componentDescriptor.uri());
     if (component) {
         component->emitAboutToUninstall();
     }