diff -r 05bc53fe583b -r 83ca720e2b9a connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/easywapidlgnotif.cpp --- a/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/easywapidlgnotif.cpp Tue Aug 31 15:35:44 2010 +0300 +++ b/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/easywapidlgnotif.cpp Wed Sep 01 12:23:51 2010 +0100 @@ -20,7 +20,7 @@ #include "WepWpaQueryDlg.h" #include "ConnUiUtilsNotif.h" -#include +#include #include @@ -47,6 +47,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;