diff -r b5e99d8877c7 -r 0dcb073356a5 sipplugins/sippsipsettingsui/src/sipsettingsplugin.cpp --- a/sipplugins/sippsipsettingsui/src/sipsettingsplugin.cpp Tue Aug 31 15:32:57 2010 +0300 +++ b/sipplugins/sippsipsettingsui/src/sipsettingsplugin.cpp Wed Sep 01 12:27:36 2010 +0100 @@ -496,30 +496,40 @@ void CSIPSettingsPlugin::ChangeDefaultProfileL() { __GSLOGSTRING("CSIPSettingsPlugin::ChangeDefaultProfileL Start " ) - 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 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 ); + } + } CleanupStack::PopAndDestroy( array ); // array + } __GSLOGSTRING("CSIPSettingsPlugin::ChangeDefaultProfileL End" ) }