Revision: 201009 RCL_3
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:39:40 +0200
branchRCL_3
changeset 7 d85e4dae0bfe
parent 5 d06b1526f62c
child 8 91bbff48ea9c
Revision: 201009 Kit: 201010
csxhelp/src/CSXHHtmlTopicContainer.cpp
--- a/csxhelp/src/CSXHHtmlTopicContainer.cpp	Fri Feb 19 22:42:03 2010 +0200
+++ b/csxhelp/src/CSXHHtmlTopicContainer.cpp	Mon Mar 15 12:39:40 2010 +0200
@@ -420,20 +420,22 @@
     {
     if(aLoadEvent == TBrCtlDefs::EEventLoadFinished)
         {
-        
-        HBufC* title = iBrCtrl->PageInfoLC(TBrCtlDefs::EPageInfoTitle);
-        if(!title)
-            {
-            CleanupStack::PopAndDestroy(title);
-            return;
-            }
-        
-        //Update the title bar
-        CEikStatusPane* sp = CCSXHAppUi::GetInstance()->StatusPane();
-        CAknTitlePane* titlePane = STATIC_CAST(CAknTitlePane*, 
-        sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle)));
-        titlePane->SetTextL(*title);
-        CleanupStack::PopAndDestroy(title);
+        if ( IsVisible() )
+             {
+               HBufC* title = iBrCtrl->PageInfoLC(TBrCtlDefs::EPageInfoTitle);
+               if(!title)
+                   {
+                   CleanupStack::PopAndDestroy(title);
+                   return;
+                   }
+               
+               //Update the title bar
+               CEikStatusPane* sp = CCSXHAppUi::GetInstance()->StatusPane();
+               CAknTitlePane* titlePane = STATIC_CAST(CAknTitlePane*, 
+               sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle)));
+               titlePane->SetTextL(*title);
+               CleanupStack::PopAndDestroy(title);
+             }
         
         //For the context sensitive view, the softkey texts need to be changed.
         //add label iLoadHtml for ESNN-7N9CLN.If the html is opened by