diff -r 05bc53fe583b -r 83ca720e2b9a connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/EasyWpaDlgNotif.cpp --- a/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/EasyWpaDlgNotif.cpp Tue Aug 31 15:35:44 2010 +0300 +++ b/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/EasyWpaDlgNotif.cpp Wed Sep 01 12:23:51 2010 +0100 @@ -21,7 +21,7 @@ #include "WepWpaQueryDlg.h" #include "ConnUiUtilsNotif.h" -#include +#include #include @@ -48,6 +48,13 @@ TInt aReplySlot, const RMessagePtr2& aMessage ) { + if ( ScreenSaverOn() || AutolockOn() ) + { + // Screen saver or Autolock is active. Cancel the dialog. + aMessage.Complete( KErrCancel ); + return; + } + iReplySlot = aReplySlot; iMessage = aMessage; iCancelled = EFalse;