--- a/clock2/clockui/uilayer/clockworldview/src/clockworldview.cpp Wed Sep 01 12:32:31 2010 +0100
+++ b/clock2/clockui/uilayer/clockworldview/src/clockworldview.cpp Tue Sep 14 21:17:03 2010 +0300
@@ -1202,9 +1202,18 @@
iGalleryOpen = EFalse;
- // Show the navigation pane.
- appUi->MakeNavigationPaneVisible( ETrue, EClockAppWorldViewId );
-
+ TVwsViewId viewId;
+ AppUi()->GetActiveViewId( viewId );
+ if( viewId.iViewUid == KClockAppWorldViewId )
+ {
+ // Show the navigation pane.
+ appUi->MakeNavigationPaneVisible( ETrue, EClockAppWorldViewId );
+ }
+ else if(viewId.iViewUid == KClockAppMainViewId )
+ {
+ //update the title text according to the active view
+ ClockApplicationUi()->SetTitlePaneTextL( R_CLOCK_TITLE_MAIN_VIEW );
+ }
// If an image is selected by the user
if( result )
{