omads/omadsappui/AspSyncUtil/src/AspSettingDialog.cpp
changeset 1 95fdac6ccb5c
parent 0 dab8a81a92de
child 10 b922b9936679
--- a/omads/omadsappui/AspSyncUtil/src/AspSettingDialog.cpp	Mon Nov 23 14:46:41 2009 +0200
+++ b/omads/omadsappui/AspSyncUtil/src/AspSettingDialog.cpp	Thu Dec 17 08:39:39 2009 +0200
@@ -1614,16 +1614,17 @@
 		
     TAspParam param(iApplicationId, iSyncSession);
 	CAspProfile* profile = CAspProfile::NewLC(param);
-    profile->OpenL(iCurrentProfileId, CAspProfile::EOpenRead,
+    profile->OpenL(iCurrentProfileId, CAspProfile::EOpenReadWrite,
                                       CAspProfile::EAllProperties);
     
     
     TInt mandatoryConnectionData = CAspProfile::CheckMandatoryConnData(profile);
-    CleanupStack::PopAndDestroy(profile);
-	
+    iContentList->SetProfile(profile);	
 	TInt contentCount = 0;
 	TInt mandatoryContentData = iContentList->CheckMandatoryDataL(contentCount);
-	
+	iContentList->SetProfile(NULL);
+	CleanupStack::PopAndDestroy(profile);
+
 	if (mandatoryConnectionData != EMandatoryOk)
 		{
 		return mandatoryConnectionData;
@@ -2406,7 +2407,7 @@
 	   {
 	   	 switch(aEventType)
 		{
-			case EEventItemClicked :
+			case EEventItemSingleClicked :
 			     HandleOKL();
 			     break;
 			default: