browserui/browser/BrowserAppSrc/BrowserAppUi.cpp
branchRCL_3
changeset 36 c9249d037530
parent 35 5c11946e75b3
child 37 25214794fad6
--- a/browserui/browser/BrowserAppSrc/BrowserAppUi.cpp	Wed Mar 31 21:35:49 2010 +0300
+++ b/browserui/browser/BrowserAppSrc/BrowserAppUi.cpp	Wed Apr 14 16:00:33 2010 +0300
@@ -612,13 +612,7 @@
                     KMaxNumOfOpenedWindows );
                 }
             LOG_WRITE_FORMAT("WindowManager Up. Max windows number. %d",
-                KMaxNumOfOpenedWindows );
-
-            // bug fix for: EMBI-6NBAYM
-            // Be very careful of the location to initialize the iPopupEngine before
-            // PopupEngine is improved.
-            iPopupEngine = CBrowserPopupEngine::NewL();
-            BROWSER_LOG( ( _L( "PopupEngine up" ) ) );
+                KMaxNumOfOpenedWindows );            
             }
         else
             {
@@ -915,8 +909,14 @@
             {
             if(WindowMgr().WindowCount() > 1)
 	            {
+#ifdef BRDO_MULTITOUCH_ENABLED_FF
 	            // use switch window tab view if pageoverview bitmaps are available
-	            if (Preferences().UiLocalFeatureSupported( KBrowserGraphicalPage ))
+	            if (Preferences().UiLocalFeatureSupported( KBrowserGraphicalPage ) 
+	                    || Preferences().UiLocalFeatureSupported( KBrowserGraphicalHistory ))
+#else	                
+                // use switch window tab view if pageoverview bitmaps are available
+                if (Preferences().UiLocalFeatureSupported( KBrowserGraphicalPage ))
+#endif                    
 	            	{
 	            	SetViewToBeActivatedIfNeededL( KUidBrowserWindowSelectionViewId );
 	            	}
@@ -1794,6 +1794,14 @@
 //
 CBrowserPopupEngine& CBrowserAppUi::PopupEngine() const
     {
+    if(!iPopupEngine)
+        { 
+            if ( Preferences().UiLocalFeatureSupported( KBrowserMultipleWindows ) )
+                {
+                    iPopupEngine = CBrowserPopupEngine::NewL();
+                    BROWSER_LOG( ( _L( "PopupEngine up" ) ) );
+                }
+        }
     return *iPopupEngine;
     }