photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandleraiwedit.cpp
equal
deleted
inserted
replaced
120 |
120 |
121 // ----------------------------------------------------------------------------- |
121 // ----------------------------------------------------------------------------- |
122 // DynInitMenuPaneL |
122 // DynInitMenuPaneL |
123 // ----------------------------------------------------------------------------- |
123 // ----------------------------------------------------------------------------- |
124 // |
124 // |
125 void CGlxCommandHandlerAiwEdit::DynInitMenuPaneL(TInt aResourceId, |
125 void CGlxCommandHandlerAiwEdit::DynInitMenuPaneL(TInt /*aResourceId*/, |
126 CEikMenuPane* aMenuPane) |
126 CEikMenuPane* aMenuPane) |
127 { |
127 { |
128 MGlxMediaList& mediaList = MediaList(); |
128 MGlxMediaList& mediaList = MediaList(); |
129 TInt pos; |
129 TInt pos; |
130 |
130 |
132 { |
132 { |
133 //If stylus menu is present, hide it for multiple selection |
133 //If stylus menu is present, hide it for multiple selection |
134 if (iCommandSingleClick && aMenuPane->MenuItemExists( |
134 if (iCommandSingleClick && aMenuPane->MenuItemExists( |
135 EGlxCmdAiwSingleClickEdit, pos) |
135 EGlxCmdAiwSingleClickEdit, pos) |
136 |
136 |
137 && ((mediaList.SelectionCount() > 1) |
137 && (((!mediaList.Count()) || (mediaList.SelectionCount() > 1)) |
138 || (!iFeatManager->IsFeatureSupportedL( |
138 || (!iFeatManager->IsFeatureSupportedL( |
139 KFeatureIdFfImageEditor) |
139 KFeatureIdFfImageEditor) |
140 && !iFeatManager->IsFeatureSupportedL( |
140 && !iFeatManager->IsFeatureSupportedL( |
141 KFeatureIdFfVideoEditor)))) |
141 KFeatureIdFfVideoEditor)))) |
142 { |
142 { |