equal
deleted
inserted
replaced
127 switch(aKeyEvent.iCode) |
127 switch(aKeyEvent.iCode) |
128 { |
128 { |
129 case EKeyUpArrow: |
129 case EKeyUpArrow: |
130 case EKeyDownArrow: |
130 case EKeyDownArrow: |
131 { |
131 { |
132 const CListBoxView::CSelectionIndexArray* inds = iListBox->SelectionIndexes(); |
132 const CListBoxView::CSelectionIndexArray* inds = NULL; |
133 TInt count = inds->Count(); |
133 TInt count = 0; |
|
134 |
|
135 if ( iListBox ) |
|
136 { |
|
137 inds = iListBox->SelectionIndexes(); |
|
138 count = inds->Count(); |
|
139 } |
134 |
140 |
135 if ( count <= 0 ) |
141 if ( count <= 0 ) |
136 { |
142 { |
137 iView.Cba()->SetCommandSetL( R_EXTENSION_MANAGER_SORT_VIEW_SOFTKEYS ); |
143 iView.Cba()->SetCommandSetL( R_EXTENSION_MANAGER_SORT_VIEW_SOFTKEYS ); |
138 } |
144 } |
145 break; |
151 break; |
146 } |
152 } |
147 case EKeyEnter: |
153 case EKeyEnter: |
148 case EKeyOK: |
154 case EKeyOK: |
149 { |
155 { |
150 const CListBoxView::CSelectionIndexArray* inds = iListBox->SelectionIndexes(); |
156 const CListBoxView::CSelectionIndexArray* inds = NULL; |
151 TInt count = inds->Count(); |
157 TInt count = 0; |
|
158 |
|
159 if ( iListBox ) |
|
160 { |
|
161 inds = iListBox->SelectionIndexes(); |
|
162 count = inds->Count(); |
|
163 } |
152 |
164 |
153 if ( count <= 0 ) |
165 if ( count <= 0 ) |
154 { |
166 { |
155 SetCurrentItemMarkedL( ETrue ); |
167 SetCurrentItemMarkedL( ETrue ); |
156 iView.Cba()->SetCommandSetL( R_AVKON_SOFTKEYS_OK_CANCEL ); |
168 iView.Cba()->SetCommandSetL( R_AVKON_SOFTKEYS_OK_CANCEL ); |