sipplugins/sippsipsettingsui/src/sipsettingsplugin.cpp
branchRCL_3
changeset 43 b5e99d8877c7
parent 14 532ef74cdfa0
child 44 0dcb073356a5
--- a/sipplugins/sippsipsettingsui/src/sipsettingsplugin.cpp	Thu Aug 19 10:16:25 2010 +0300
+++ b/sipplugins/sippsipsettingsui/src/sipsettingsplugin.cpp	Tue Aug 31 15:32:57 2010 +0300
@@ -496,40 +496,30 @@
 void CSIPSettingsPlugin::ChangeDefaultProfileL()
     {
     __GSLOGSTRING("CSIPSettingsPlugin::ChangeDefaultProfileL Start " )
-    		
-    TInt aFlage = iContainer->DrawerFlags();	
-    if( aFlage & CTextListItemDrawer::EDisableMarquee )
-    	{
-		TInt selectedIndex = iContainer->CurrentIndex();
-		iModel->SetDefaultProfileL( selectedIndex );
-    	}
-    else 
-    	{		
-		TInt selectedIndex = iModel->DefaultProfileIndex();  
-		TInt oldProfileIndex = selectedIndex;  
-		
-		// Get the array of the profile names, ownership changes
-		CDesCArray* array = iModel->ListOfProfileNamesL();    
-		CleanupStack::PushL( array );
-		
-		// Create and display the pop-up list
-		CAknRadioButtonSettingPage* defaultPopUp = 
-			new ( ELeave ) CAknRadioButtonSettingPage( 
-				R_SIP_PROFILE_LIST_VIEW_DEFAULT_SETTING_PAGE,
-				selectedIndex,
-				array );
-		if ( defaultPopUp->ExecuteLD( CAknSettingPage::EUpdateWhenChanged ) )
-			{
-			if ( selectedIndex != oldProfileIndex )
-				{
-				// User has changed the default profile, set new setting
-				// to persistent storage
-				iModel->SetDefaultProfileL( selectedIndex );
-				}
-			}
+    TInt selectedIndex = iModel->DefaultProfileIndex();  
+    TInt oldProfileIndex = selectedIndex;  
+    
+    // Get the array of the profile names, ownership changes
+    CDesCArray* array = iModel->ListOfProfileNamesL();    
+    CleanupStack::PushL( array );
+    
+    // Create and display the pop-up list
+    CAknRadioButtonSettingPage* defaultPopUp = 
+        new ( ELeave ) CAknRadioButtonSettingPage( 
+            R_SIP_PROFILE_LIST_VIEW_DEFAULT_SETTING_PAGE,
+            selectedIndex,
+            array );
+    if ( defaultPopUp->ExecuteLD( CAknSettingPage::EUpdateWhenChanged ) )
+        {
+        if ( selectedIndex != oldProfileIndex )
+            {
+            // User has changed the default profile, set new setting
+            // to persistent storage
+            iModel->SetDefaultProfileL( selectedIndex );
+            }
+        }
 
     CleanupStack::PopAndDestroy( array );  // array
-    	}
     __GSLOGSTRING("CSIPSettingsPlugin::ChangeDefaultProfileL End" )
     }