diff -r aecbbf00d063 -r d48ab3b357f1 uifw/AvKon/akncompamode/src/akncompakb.cpp --- a/uifw/AvKon/akncompamode/src/akncompakb.cpp Tue Aug 31 15:28:30 2010 +0300 +++ b/uifw/AvKon/akncompamode/src/akncompakb.cpp Wed Sep 01 12:16:19 2010 +0100 @@ -270,11 +270,13 @@ // disabled whenever screen mode changes to compa-mode by AknCapServer. if (iFlags.iInAknCapSrv && iFlags.iEffectsDisa != aDisable) { + TInt err = KErrNone; if (iCompaSrvSession.Handle() == KNullHandle) { - User::LeaveIfError( iCompaSrvSession.Connect() ); + err = iCompaSrvSession.Connect(); } - if (iCompaSrvSession.Handle() != KNullHandle) + + if (err == KErrNone && iCompaSrvSession.Handle() != KNullHandle) { if (aDisable) {