idlehomescreen/xmluicontroller/src/onlineofflinehelper.cpp
branchRCL_3
changeset 28 d721605b30d0
parent 17 b8fae6b8a148
--- a/idlehomescreen/xmluicontroller/src/onlineofflinehelper.cpp	Wed Jun 09 09:29:04 2010 +0300
+++ b/idlehomescreen/xmluicontroller/src/onlineofflinehelper.cpp	Mon Jun 21 15:27:11 2010 +0300
@@ -443,11 +443,11 @@
 //
 void COnlineOfflineHelper::HandleConnectionQueryL( const TDesC& aConnection)
     {
-    if ( aConnection == KDisConnected() ) 
+    if ( aConnection == KDisConnected() && ShowOfflineItem() ) 
         {
         ShowGlobalQueryL(R_QTN_HS_DISABLE_NETWORK, EFalse );
         }
-    else if ( aConnection == KConnected() )
+    else if ( aConnection == KConnected() && ShowOnlineItem() )
         {
         ShowGlobalQueryL(R_QTN_HS_SWITCH_ONLINE, ETrue );
         }