photosgallery/controllers/fetcher/src/glxfetcherdialog.cpp
changeset 2 7d9067c6fcb1
parent 1 9ba538e329bd
child 13 71da52165949
--- a/photosgallery/controllers/fetcher/src/glxfetcherdialog.cpp	Thu Jan 07 12:46:23 2010 +0200
+++ b/photosgallery/controllers/fetcher/src/glxfetcherdialog.cpp	Mon Jan 18 20:19:20 2010 +0200
@@ -44,7 +44,6 @@
 #include "glxfetchercontainer.h"
 #include "glxfetcher.hrh"
 
-#define GetAppUi() (dynamic_cast<CAknAppUi*>(iEikonEnv->EikAppUi()))
 const TInt KControlId = 1;
      
 //-----------------------------------------------------------------------------
@@ -92,9 +91,9 @@
 	if(iFetcherContainer)
 	    {
 	    // Restore the Toolbar as it was in the Calling application
-	    if(GetAppUi()->CurrentFixedToolbar())  // there is Hardware Specific Output for Fixed ToolBar
+	    if(iAvkonAppUi->CurrentFixedToolbar())  // there is Hardware Specific Output for Fixed ToolBar
 	        {
-	        GetAppUi()->CurrentFixedToolbar()->SetToolbarVisibility(ETrue);
+	        iAvkonAppUi->CurrentFixedToolbar()->SetToolbarVisibility(ETrue);
 	        }
 
 	    TRAP_IGNORE(iFetcherContainer->SetPreviousTitleL());
@@ -116,9 +115,9 @@
     CAknDialog::ConstructL( R_MULTISELECT_FETCHER_MENUBAR );
 
     // Get the Instance of the toolbar and disable it as it is note required in the Fetcher Application
-    if(GetAppUi()->CurrentFixedToolbar())  // there is Hardware Specific Output for Fixed ToolBar
+    if (iAvkonAppUi->CurrentFixedToolbar())  // there is Hardware Specific Output for Fixed ToolBar
         {
-        GetAppUi()->CurrentFixedToolbar()->SetToolbarVisibility(EFalse);
+        iAvkonAppUi->CurrentFixedToolbar()->SetToolbarVisibility(EFalse);
         }
 	// Get the Hitchcock environment.
     iUiUtility = CGlxUiUtility::UtilityL();