uifw/AvKon/src/AknRadioButtonSettingPage.cpp
branchRCL_3
changeset 4 8ca85d2f0db7
parent 0 2f259fa3e83a
child 15 08e69e956a8c
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".
   245             // it must be reverted back to represent the same item as
   245             // it must be reverted back to represent the same item as
   246             // the current selection in the setting page.
   246             // the current selection in the setting page.
   247             // Only in single click enabled applications.
   247             // Only in single click enabled applications.
   248             if ( iExtension &&
   248             if ( iExtension &&
   249                  iExtension->iFlags.IsSet(
   249                  iExtension->iFlags.IsSet(
   250                      CAknRadioButtonSettingPageExtension::ESingleClickEnabled ) )
   250                      CAknRadioButtonSettingPageExtension::ESingleClickEnabled ) &&
       
   251                  iCurrentSelectionIndex >= 0 &&
       
   252                  iCurrentSelectionIndex < ListBoxControl()->Model()->NumberOfItems() )
   251                 {
   253                 {
   252                 ListBoxControl()->View()->SetCurrentItemIndex(
   254                 ListBoxControl()->View()->SetCurrentItemIndex(
   253                     iCurrentSelectionIndex );
   255                     iCurrentSelectionIndex );
   254                 }
   256                 }
   255             break;
   257             break;