emailuis/emailui/src/ncscomposeview.cpp
branchRCL_3
changeset 16 4ce476e64c59
parent 13 0396474f30f5
child 17 8592a65ad3fb
--- a/emailuis/emailui/src/ncscomposeview.cpp	Mon Mar 15 12:39:10 2010 +0200
+++ b/emailuis/emailui/src/ncscomposeview.cpp	Wed Mar 31 21:08:33 2010 +0300
@@ -949,9 +949,16 @@
                     {
                     // show the toolbar
                     UpdateToolbarL();
-                    if ( Toolbar() && Toolbar()->ToolbarExtension() )
+                    CAknToolbar* toolbar = Toolbar();
+                    if ( toolbar )
                         {
-                        Toolbar()->ToolbarExtension()->SetShown( ETrue );
+                        CAknToolbarExtension* extension =
+                            static_cast<CAknToolbarExtension*>(
+                                toolbar->ControlOrNull( EFsEmailUiTbCmdExpandInsert ) );
+                        if ( extension )
+                            {
+                            extension->SetShown( ETrue );
+                            }
                         }
                     }
                 else