videofeeds/hgvodui/src/vcxhgvodlistimplbase.cpp
changeset 2 dec420019252
parent 1 6711b85517b7
--- a/videofeeds/hgvodui/src/vcxhgvodlistimplbase.cpp	Tue Jan 26 12:00:59 2010 +0200
+++ b/videofeeds/hgvodui/src/vcxhgvodlistimplbase.cpp	Tue Feb 02 00:12:10 2010 +0200
@@ -100,10 +100,6 @@
         urlToLaunch->Des().Append( KUrlLaunchParameter );
         urlToLaunch->Des().Append( *parsed );
 
-#if defined(__WINSCW__)
-        //custom ap overriden settings cannot be used in emulator environment
-        iLauncher->LaunchBrowserEmbeddedL( *urlToLaunch, NULL, this );
-#else
         //Get available iap and pass it to browser 
         TUint32 wap = iModel.GetAvailableWapIdL();
         if ( wap == 0 )
@@ -113,8 +109,11 @@
         TBrowserOverriddenSettings overriddenSettings;
         overriddenSettings.SetBrowserSetting( EBrowserOverSettingsCustomAp, wap );
 
-        iLauncher->LaunchBrowserEmbeddedL( *urlToLaunch, NULL, this, &overriddenSettings );
-#endif
+        // Check, that the state has not been changed while launching
+        if ( iModel.VcAppState() == EStateBrowser )
+            {
+            iLauncher->LaunchBrowserEmbeddedL( *urlToLaunch, NULL, this, &overriddenSettings );
+            }
 
         CleanupStack::PopAndDestroy( urlToLaunch );
         CleanupStack::PopAndDestroy( parsed );