photosgallery/slideshow/settingsdialog/src/shwslideshowsettingsdialog.cpp
branchRCL_3
changeset 25 191387a8b767
parent 2 7d9067c6fcb1
equal deleted inserted replaced
22:2dac0fdba72b 25:191387a8b767
   154 void CShwSlideshowSettingsDialog::SetSlShwToolbarVisibility(TBool aVisible)
   154 void CShwSlideshowSettingsDialog::SetSlShwToolbarVisibility(TBool aVisible)
   155     {
   155     {
   156     TRACER("CShwSlideshowSettingsDialog::SetSlShwToolbarVisibility");
   156     TRACER("CShwSlideshowSettingsDialog::SetSlShwToolbarVisibility");
   157     CAknAppUi* appUi = iAvkonAppUi;
   157     CAknAppUi* appUi = iAvkonAppUi;
   158     __ASSERT_DEBUG(appUi, Panic(EGlxPanicNullPointer));
   158     __ASSERT_DEBUG(appUi, Panic(EGlxPanicNullPointer));
   159 
   159     if (!appUi)
       
   160         {
       
   161         return;
       
   162         }
   160     CAknToolbar* popupToolbar = appUi->PopupToolbar();
   163     CAknToolbar* popupToolbar = appUi->PopupToolbar();
   161     if(popupToolbar)
   164     if(popupToolbar)
   162         {
   165         {
   163         popupToolbar->SetToolbarVisibility( !aVisible ); 
   166         popupToolbar->SetToolbarVisibility( !aVisible ); 
   164         popupToolbar->MakeVisible( !aVisible );
   167         popupToolbar->MakeVisible( !aVisible );