uifw/AvKon/src/AknPopupSettingPage.cpp
branchRCL_3
changeset 4 8ca85d2f0db7
parent 0 2f259fa3e83a
child 10 9f56a4e1b8ab
equal deleted inserted replaced
0:2f259fa3e83a 4:8ca85d2f0db7
     1 /*
     1 /*
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   315         case MEikListBoxObserver::EEventFlickStopped:
   315         case MEikListBoxObserver::EEventFlickStopped:
   316             // Change list's current item index to the selected item. This
   316             // Change list's current item index to the selected item. This
   317             // ensures that correct item gets selected if setting page is
   317             // ensures that correct item gets selected if setting page is
   318             // accepted by clicking the left softkey.
   318             // accepted by clicking the left softkey.
   319             if ( iExtension && iExtension->iFlags.IsSet( 
   319             if ( iExtension && iExtension->iFlags.IsSet( 
   320                     CAknPopupSettingListExtension::ESingleClickEnabled ) )
   320                      CAknPopupSettingListExtension::ESingleClickEnabled ) &&
       
   321                  ItemExists( iCurrentSelection ) )
   321                 {
   322                 {
   322                 View()->SetCurrentItemIndex( iCurrentSelection );
   323                 View()->SetCurrentItemIndex( iCurrentSelection );
   323                 }
   324                 }
   324             break;
   325             break;
   325             
   326