equal
deleted
inserted
replaced
390 void CMediaFileDialog::PreLayoutDynInitL() |
390 void CMediaFileDialog::PreLayoutDynInitL() |
391 { |
391 { |
392 const TInt KFindBoxLength = 20; |
392 const TInt KFindBoxLength = 20; |
393 |
393 |
394 iListBox = (CAknSingleGraphicStyleListBox*) (ControlOrNull(1)); |
394 iListBox = (CAknSingleGraphicStyleListBox*) (ControlOrNull(1)); |
395 |
395 iListBox->DisableSingleClick(ETrue); |
396 __ASSERT_ALWAYS( iListBox, TMFDialogUtil::Panic( KErrGeneral ) ); |
396 __ASSERT_ALWAYS( iListBox, TMFDialogUtil::Panic( KErrGeneral ) ); |
397 |
397 |
398 iListBox->Model()->SetItemTextArray( iMFListHandler ); |
398 iListBox->Model()->SetItemTextArray( iMFListHandler ); |
399 iListBox->Model()->SetOwnershipType( ELbmDoesNotOwnItemArray ); |
399 iListBox->Model()->SetOwnershipType( ELbmDoesNotOwnItemArray ); |
400 |
400 |
3090 HandleOKL( EAttrOpen ); // open folder item |
3090 HandleOKL( EAttrOpen ); // open folder item |
3091 } |
3091 } |
3092 return; |
3092 return; |
3093 } |
3093 } |
3094 |
3094 |
3095 if ( aEventType == EEventItemSingleClicked || aEventType == EEventEnterKeyPressed ) |
3095 if ( aEventType == EEventItemDoubleClicked || aEventType == EEventEnterKeyPressed ) |
3096 { |
3096 { |
3097 TBool closeDialog = HandleOKL( EAttrDoubleClicked ); |
3097 TBool closeDialog = HandleOKL( EAttrDoubleClicked ); |
3098 |
3098 |
3099 if ( closeDialog ) |
3099 if ( closeDialog ) |
3100 { |
3100 { |