--- a/gssettingsuis/Gs/GSPDataConnectionPlugin/src/GSPDataConnectionPlugin.cpp Fri Mar 12 15:43:47 2010 +0200
+++ b/gssettingsuis/Gs/GSPDataConnectionPlugin/src/GSPDataConnectionPlugin.cpp Mon Mar 15 12:41:46 2010 +0200
@@ -261,12 +261,27 @@
R_GS_PDATACONNECTION_SETTING_PAGE_LBX );
CleanupStack::PushL( items );
- CAknRadioButtonSettingPage* dlg =
- new (ELeave) CAknRadioButtonSettingPage
- ( R_GS_PDATACONNECTION_SETTING_PAGE,
- aPDataConnectionState,
- items );
- dlg->ExecuteLD( CAknSettingPage::EUpdateWhenChanged );
+ if( items->Count() != 2 )
+ {
+ CAknRadioButtonSettingPage* dlg =
+ new (ELeave) CAknRadioButtonSettingPage
+ ( R_GS_PDATACONNECTION_SETTING_PAGE,
+ aPDataConnectionState,
+ items );
+ dlg->ExecuteLD( CAknSettingPage::EUpdateWhenChanged );
+ }
+ else
+ {
+ if (aPDataConnectionState == 0)
+ {
+ aPDataConnectionState = 1;
+ }
+ else
+ {
+ aPDataConnectionState = 0;
+ }
+ }
+
CleanupStack::PopAndDestroy( items );
// Check if aPDataConnectionState has been changed: