sipplugins/sippsipsettingsui/src/gssipmodel.cpp
branchRCL_3
changeset 44 0dcb073356a5
parent 43 b5e99d8877c7
equal deleted inserted replaced
43:b5e99d8877c7 44:0dcb073356a5
  1203     
  1203     
  1204     if ( profile )
  1204     if ( profile )
  1205         {
  1205         {
  1206         profile->GetParameter( KSIPDefaultProfile, aDefault );
  1206         profile->GetParameter( KSIPDefaultProfile, aDefault );
  1207         profile->GetParameter( KSIPProfileLocked, aLocked );
  1207         profile->GetParameter( KSIPProfileLocked, aLocked );
  1208         aIsUse = iEngine->IsInUseL( *profile );
  1208         TUint32 profileId;
       
  1209         profile->GetParameter( KSIPProfileId, profileId );        
       
  1210         aIsUse = CheckIsProfileInUseL( profileId );
  1209         } 
  1211         } 
  1210     __GSLOGSTRING("CGSSIPModel::CheckProfileForDeleteL End" )
  1212     __GSLOGSTRING("CGSSIPModel::CheckProfileForDeleteL End" )
  1211     }
  1213     }
  1212 
  1214 
  1213 // -----------------------------------------------------------------------------
  1215 // -----------------------------------------------------------------------------
  1222     CSIPManagedProfile* profile = Profile( aProfileId );
  1224     CSIPManagedProfile* profile = Profile( aProfileId );
  1223     
  1225     
  1224     if ( profile )
  1226     if ( profile )
  1225         {
  1227         {
  1226         profile->GetParameter( KSIPProfileRegistered, inUse );
  1228         profile->GetParameter( KSIPProfileRegistered, inUse );
       
  1229         if ( !inUse )
       
  1230         	{
       
  1231             inUse = iEngine->IsInUseL( *profile );
       
  1232         	}
  1227         }
  1233         }
  1228     
  1234     
  1229     return inUse;    
  1235     return inUse;    
  1230     }
  1236     }
  1231 
  1237