bearermanagement/mpm/src/mpmiapselection.cpp
branchRCL_3
changeset 13 68f0c7cd80ec
parent 12 ea6e024ea6f9
child 15 4dc3bb0099b0
--- a/bearermanagement/mpm/src/mpmiapselection.cpp	Fri Mar 12 15:44:18 2010 +0200
+++ b/bearermanagement/mpm/src/mpmiapselection.cpp	Mon Mar 15 12:42:11 2010 +0200
@@ -154,6 +154,17 @@
             return;
             }
         }
+    
+    if  ( iChooseIapPref.ConnSelectionDialog() )
+        {
+        // Complete selection with error code if wlan only was set and bearer set as cellular 
+        if ( wlanOnly && 
+             iChooseIapPref.BearerSet() == TExtendedConnPref::EExtendedConnBearerCellular ) 
+            {            
+            ChooseIapComplete( KErrPermissionDenied, NULL );
+            return;
+            }
+        }
         
     MPMLOGSTRING2( "CMPMIapSelection::ChooseIapL:\
  connection type %d", iChooseIapPref.ConnType() )