photosgallery/viewframework/commandhandlers/commandhandlerbase/src/glxmedialistcommandhandler.cpp
branchRCL_3
changeset 18 bcb43dc84c44
parent 14 ce1c7ad1f18b
child 25 191387a8b767
equal deleted inserted replaced
14:ce1c7ad1f18b 18:bcb43dc84c44
   175 
   175 
   176         	    // Check if the menu command is know to this command handler
   176         	    // Check if the menu command is know to this command handler
   177         	    if ( IsSupported( item.iCommandId ) )
   177         	    if ( IsSupported( item.iCommandId ) )
   178         	        {
   178         	        {
   179         	        TBool isDisabled = IsDisabledL(item.iCommandId, MediaList());
   179         	        TBool isDisabled = IsDisabledL(item.iCommandId, MediaList());
   180         	        
       
   181         	        if( !isDisabled && 
       
   182         	            iCurrentViewingState == TCommandInfo::EViewingStateView )
       
   183         	            {
       
   184                         //isDisabled = sf.IsActivePaletteItemVisible( item.iCommandId );
       
   185         	            }
       
   186         	        // Check visibility of the menu item
   180         	        // Check visibility of the menu item
   187     				aMenuPane->SetItemDimmed( item.iCommandId, isDisabled);
   181     				aMenuPane->SetItemDimmed( item.iCommandId, isDisabled);
   188     				
   182     				
   189     				atLeastOneEnabledSupportedItem = atLeastOneEnabledSupportedItem || (!isDisabled);
   183     				atLeastOneEnabledSupportedItem = atLeastOneEnabledSupportedItem || (!isDisabled);
   190         	        }
   184         	        }