uifw/AvKon/src/AknPreviewPopUpController.cpp
branchRCL_3
changeset 64 85902f042028
parent 56 d48ab3b357f1
child 72 a5e7a4f63858
equal deleted inserted replaced
59:978afdc0236f 64:85902f042028
   129 // CAknPreviewPopUpController::~CAknPreviewPopUpController
   129 // CAknPreviewPopUpController::~CAknPreviewPopUpController
   130 // -----------------------------------------------------------------------------
   130 // -----------------------------------------------------------------------------
   131 //
   131 //
   132 CAknPreviewPopUpController::~CAknPreviewPopUpController()
   132 CAknPreviewPopUpController::~CAknPreviewPopUpController()
   133     {
   133     {
       
   134     // If transition effect is on, when the deleting is caused by pressing red key
       
   135     // (the font for CONE is already destroyed), the preview popup's hide operation
       
   136     // will call its draw operation which will use the deleted font, thus panic happens;
       
   137     // we hide the popup here in advance to prevent transation effect from drawing.
       
   138     if( iPopUp->IsVisible() )
       
   139         {
       
   140         iPopUp->MakeVisible( EFalse );
       
   141         }
       
   142 
   134     Cancel();
   143     Cancel();
   135     delete iPopUp;
   144     delete iPopUp;
   136     iObservers.Reset();
   145     iObservers.Reset();
   137     }
   146     }
   138 
   147