uifw/AknGlobalUI/AknCapServer/src/AknFastswapWindowControl.cpp
branchRCL_3
changeset 18 0aa5fbdfbc30
parent 4 8ca85d2f0db7
child 55 aecbbf00d063
equal deleted inserted replaced
16:71dd06cfe933 18:0aa5fbdfbc30
  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 // ----------------------------------------------------------------------------