equal
deleted
inserted
replaced
2922 // --------------------------------------------------------- |
2922 // --------------------------------------------------------- |
2923 // |
2923 // |
2924 TPtrC CAknFastSwapWindowControl::CurrentAppName() |
2924 TPtrC CAknFastSwapWindowControl::CurrentAppName() |
2925 { |
2925 { |
2926 _AKNTRACE_FUNC_ENTER; |
2926 _AKNTRACE_FUNC_ENTER; |
2927 TPtrC name = iGrid->Model()->ItemText( iGrid->CurrentDataIndex() ); |
2927 TInt textindex = iGrid->CurrentDataIndex(); |
2928 name.Set( name.Mid( name.Find(KTab)+1) ); |
2928 TPtrC name; |
|
2929 if ( textindex > 0 ) |
|
2930 { |
|
2931 name.Set( iGrid->Model()->ItemText( textindex ) ); |
|
2932 name.Set( name.Mid( name.Find(KTab)+1 ) ); |
|
2933 } |
2929 _AKNTRACE_FUNC_EXIT; |
2934 _AKNTRACE_FUNC_EXIT; |
2930 return name; |
2935 return name; |
2931 } |
2936 } |
2932 |
2937 |
2933 // ---------------------------------------------------------------------------- |
2938 // ---------------------------------------------------------------------------- |