sipplugins/sippsipsettingsui/src/gssipmodel.cpp
branchRCL_3
changeset 4 dd3853b8dc3f
parent 0 307788aac0a8
child 9 1e1cc61f56c3
--- a/sipplugins/sippsipsettingsui/src/gssipmodel.cpp	Tue Feb 02 01:03:15 2010 +0200
+++ b/sipplugins/sippsipsettingsui/src/gssipmodel.cpp	Fri Feb 19 23:10:33 2010 +0200
@@ -195,6 +195,10 @@
 TBool CGSSIPModel::SaveProfileL()
     {
     __GSLOGSTRING("CGSSIPModel::SaveProfileL" )
+    if( iNewProfile )
+    	{
+    	return EFalse;
+    	}
     TBool modifications = ETrue;
     TInt err( KErrNone );
 
@@ -1199,9 +1203,9 @@
     
     if ( profile )
         {
-        profile->GetParameter( KSIPProfileRegistered, aIsUse );
         profile->GetParameter( KSIPDefaultProfile, aDefault );
         profile->GetParameter( KSIPProfileLocked, aLocked );
+        aIsUse = iEngine->IsInUseL( *profile );
         } 
     __GSLOGSTRING("CGSSIPModel::CheckProfileForDeleteL End" )
     }