# HG changeset patch # User fimarlaht2 <> # Date 1287403274 -10800 # Node ID 32f887d619a01fc71fe08384a8791e299a7a3949 # Parent 20e07ff6040b761a38fb309241f415df13f37e7d Bug 3556 - Not possible to restore factory settings diff -r 20e07ff6040b -r 32f887d619a0 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 );