locationdataharvester/geocodeupdate/src/geocodeupdate.cpp
changeset 35 59575560d1e6
parent 31 8db05346071b
child 41 b3dd5ec3089d
--- a/locationdataharvester/geocodeupdate/src/geocodeupdate.cpp	Tue Jul 06 14:10:28 2010 +0300
+++ b/locationdataharvester/geocodeupdate/src/geocodeupdate.cpp	Wed Aug 18 09:43:18 2010 +0300
@@ -127,8 +127,11 @@
         AgendaGeoValue geoValue;
         geoValue.setLatLong(latitude, longitude);
         MYLOCLOGSTRING("latitude and longitude set to  AgendaGeoValue object.");
-        agendaEntry.setGeoValue(geoValue);
-        ret = mAgendaUtil->updateEntry(agendaEntry);
+        if( !agendaEntry.isNull() )
+        {
+            agendaEntry.setGeoValue(geoValue);
+            ret = mAgendaUtil->store(agendaEntry);
+        }
     }    
     return ret;
 }