Bug 3556 - Not possible to restore factory settings RCL_3 tip
authorfimarlaht2 <>
Mon, 18 Oct 2010 15:01:14 +0300
branchRCL_3
changeset 85 32f887d619a0
parent 83 20e07ff6040b
Bug 3556 - Not possible to restore factory settings
coreapplicationuis/Rfs/src/rfsHandler.cpp
--- a/coreapplicationuis/Rfs/src/rfsHandler.cpp	Fri Oct 22 16:02:50 2010 +0100
+++ b/coreapplicationuis/Rfs/src/rfsHandler.cpp	Mon Oct 18 15:01:14 2010 +0300
@@ -191,10 +191,12 @@
             CAknInformationNote* note = new ( ELeave ) CAknInformationNote( ETrue );
             note->ExecuteLD( *prompt );
             CleanupStack::PopAndDestroy( prompt );
-			
+
+#ifndef __WINS__ //Do not allow RFS in emulator
             if (aType == ERfsNormal ) startersession.Reset( RStarterSession::ENormalRFSReset );
             else if (aType == ERfsDeep ) startersession.Reset( RStarterSession::EDeepRFSReset );
             else startersession.Reset( RStarterSession::EUnknownReset );
+#endif // __WINS__
             startersession.Close();
             }
         }
@@ -423,7 +425,6 @@
             }
         }    
 
-#ifndef __WINS__ //Do not allow RFS in emulator
     if (( callState != KErrUnknown &&
           callState != EPSCTsyCallStateNone ) ||
         ( gprsState != KErrUnknown &&
@@ -437,7 +438,6 @@
         ( btState ) ||
         ( irdaState == TIrdaStatusCodes::EIrConnected ) ||
         ( wlanState == EPSWlanIndicatorActive || wlanState == EPSWlanIndicatorActiveSecure ))
-#endif //__WINS__
         {
         HBufC* prompt = iEnv->AllocReadResourceLC( R_ACTIVE_CALLS );