connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/nowlannetworksavailablenotif.cpp
--- a/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/nowlannetworksavailablenotif.cpp Tue May 25 13:08:02 2010 +0300
+++ b/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/nowlannetworksavailablenotif.cpp Wed Jun 09 10:07:12 2010 +0300
@@ -16,6 +16,8 @@
*/
// INCLUDE FILES
+#include <e32property.h>
+#include <ScreensaverInternalPSKeys.h>
#include "ConnectionDialogsUidDefs.h"
#include "nowlannetworksavailablenotif.h"
#include "nowlansdiscreetpopup.h"
@@ -48,9 +50,14 @@
TInt aReplySlot,
const RMessagePtr2& aMessage )
{
- if ( iActiveNote )
+ TInt screenSaverOn( 0 );
+ RProperty::Get( KPSUidScreenSaver,
+ KScreenSaverOn,
+ screenSaverOn );
+
+ if ( iActiveNote || screenSaverOn > 0 )
{
- // Note is already active
+ // Note is already active or Screensaver is on.
aMessage.Complete( KErrNone );
return;
}