photosgallery/viewframework/commandhandlers/commandhandlerbase/src/glxmedialistcommandhandler.cpp
equal
deleted
inserted
replaced
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 } |