--- 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