diff -r 5cc91383ab1e -r 7333d7932ef7 appinstaller/AppMngr2/GSSettingsPlugin/src/appmngr2gssettingsplugin.cpp --- a/appinstaller/AppMngr2/GSSettingsPlugin/src/appmngr2gssettingsplugin.cpp Thu Aug 19 10:02:49 2010 +0300 +++ b/appinstaller/AppMngr2/GSSettingsPlugin/src/appmngr2gssettingsplugin.cpp Tue Aug 31 15:21:33 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -364,11 +364,17 @@ if( aSettingIndex == EAppMngr2SettingSwInstall ) { - // Install software - toggle 'Signed only' and 'All' - TBool allowUntrusted = EFalse; - repDB->Get( KSWInstallerAllowUntrusted, allowUntrusted ); - allowUntrusted = !allowUntrusted; - SetPermissionL( aSettingIndex, allowUntrusted, urlText ); + // Install software + itemArray = iCoeEnv->ReadDesC16ArrayResourceL( + R_APPMNGR2_ALLOW_UNTRUSTED_VALUE_ARRAY ); + repDB->Get( KSWInstallerAllowUntrusted, newIndex ); + if( newIndex ) + { + newIndex = 1; + } + dlg = new ( ELeave ) CAknRadioButtonSettingPage( + R_APPMNGR2_SET_PAGE_ALLOW_UNTRUSTED, + newIndex, itemArray ); } else { @@ -383,7 +389,7 @@ CleanupStack::PopAndDestroy( repDB ); CleanupStack::PushL( itemArray ); - if( dlg && dlg->ExecuteLD( CAknSettingPage::EUpdateWhenChanged ) ) + if( dlg->ExecuteLD( CAknSettingPage::EUpdateWhenChanged ) ) { SetPermissionL( aSettingIndex, newIndex, urlText ); }