emailuis/emailui/src/ncscomposeview.cpp
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
   947            	 	{
   947            	 	{
   948                 if ( AknLayoutUtils::PenEnabled() )
   948                 if ( AknLayoutUtils::PenEnabled() )
   949                     {
   949                     {
   950                     // show the toolbar
   950                     // show the toolbar
   951                     UpdateToolbarL();
   951                     UpdateToolbarL();
   952                     if ( Toolbar() && Toolbar()->ToolbarExtension() )
   952                     CAknToolbar* toolbar = Toolbar();
       
   953                     if ( toolbar )
   953                         {
   954                         {
   954                         Toolbar()->ToolbarExtension()->SetShown( ETrue );
   955                         CAknToolbarExtension* extension =
       
   956                             static_cast<CAknToolbarExtension*>(
       
   957                                 toolbar->ControlOrNull( EFsEmailUiTbCmdExpandInsert ) );
       
   958                         if ( extension )
       
   959                             {
       
   960                             extension->SetShown( ETrue );
       
   961                             }
   955                         }
   962                         }
   956                     }
   963                     }
   957                 else
   964                 else
   958                     {
   965                     {
   959                     iAttachmentAddType = MsgAttachmentUtils::EUnknown;
   966                     iAttachmentAddType = MsgAttachmentUtils::EUnknown;