sipplugins/sippsipsettingsui/src/gssipmodel.cpp
branchRCL_3
changeset 9 1e1cc61f56c3
parent 4 dd3853b8dc3f
child 14 532ef74cdfa0
--- a/sipplugins/sippsipsettingsui/src/gssipmodel.cpp	Fri Feb 19 23:10:33 2010 +0200
+++ b/sipplugins/sippsipsettingsui/src/gssipmodel.cpp	Fri Mar 12 15:44:11 2010 +0200
@@ -1205,7 +1205,9 @@
         {
         profile->GetParameter( KSIPDefaultProfile, aDefault );
         profile->GetParameter( KSIPProfileLocked, aLocked );
-        aIsUse = iEngine->IsInUseL( *profile );
+        TUint32 profileId;
+        profile->GetParameter( KSIPProfileId, profileId );        
+        aIsUse = CheckIsProfileInUseL( profileId );
         } 
     __GSLOGSTRING("CGSSIPModel::CheckProfileForDeleteL End" )
     }
@@ -1224,6 +1226,10 @@
     if ( profile )
         {
         profile->GetParameter( KSIPProfileRegistered, inUse );
+        if ( !inUse )
+        	{
+            inUse = iEngine->IsInUseL( *profile );
+        	}
         }
     
     return inUse;