diff -r b3431bff8c19 -r 5586b4d2ec3e phonebookui/Phonebook2/CommonUI/src/CPbk2RingingToneFetch.cpp --- a/phonebookui/Phonebook2/CommonUI/src/CPbk2RingingToneFetch.cpp Wed Mar 31 21:13:53 2010 +0300 +++ b/phonebookui/Phonebook2/CommonUI/src/CPbk2RingingToneFetch.cpp Wed Apr 14 15:45:35 2010 +0300 @@ -84,18 +84,13 @@ TBool result = list->ShowMediaFileListL( &aRingingToneFile, &nullItem, NULL, NULL ); CleanupStack::PopAndDestroy( list ); - - // Set result to be ETrue if nullItem (like default tone) - // is selected in media file list. - if ( KErrNotFound != nullItem ) + + //if DefaultTone is selected, then empty aRingingToneFile + if( !ringingToneFile.Compare(aRingingToneFile) ) { - //if DefaultTone is selected, then empty aRingingToneFile - if( !ringingToneFile.Compare(aRingingToneFile) ) - { - aRingingToneFile.Zero(); - } - result = ETrue; + aRingingToneFile.Zero(); } + return result; }