diff -r cd124c4eb6b9 -r 1c8b56cb6409 application/src/PodcastSettingsView.cpp --- a/application/src/PodcastSettingsView.cpp Fri Jul 09 23:58:47 2010 +0100 +++ b/application/src/PodcastSettingsView.cpp Sat Jul 10 13:35:21 2010 +0100 @@ -25,7 +25,7 @@ #include #include "SettingsEngine.h" -#include +//#include #include #include @@ -288,40 +288,40 @@ void EditItemL (TInt aIndex, TBool aCalledFromMenu) { DP("EditItemL BEGIN"); - if (aIndex == 0) { - TFileName selectedFolder; - selectedFolder.Copy(iShowDir); - TFileName startFolder; - startFolder.Zero(); - TInt types = AknCommonDialogsDynMem::EMemoryTypePhone | AknCommonDialogsDynMem::EMemoryTypeMMC |AknCommonDialogsDynMem::EMemoryTypeInternalMassStorage| AknCommonDialogsDynMem::EMemoryTypeRemote; - - HBufC *title = iCoeEnv->AllocReadResourceLC(R_PODCAST_SELECT_FOLDER); - if (AknCommonDialogsDynMem::RunFolderSelectDlgLD (types, selectedFolder, - startFolder, NULL, NULL, *title)) - { - _LIT(KPodcastsDir, "Podcasts"); - TInt pos = selectedFolder.Find(KPodcastsDir); - if (pos == KErrNotFound || pos != selectedFolder.Length()-9) - { - // append "Podcasts" if the folder isn't already called this - selectedFolder.Append(KPodcastsDir); - } - - if (selectedFolder[selectedFolder.Length()-1] != '\\') - { - selectedFolder.Append(_L("\\")); - } - - iShowDir.Copy(selectedFolder); - LoadSettingsL(); - } - CleanupStack::PopAndDestroy(title); - } - else { - CAknSettingItemList::EditItemL(aIndex,aCalledFromMenu); - } - StoreSettingsL(); - UpdateSettingVisibility(); +// if (aIndex == 0) { +// TFileName selectedFolder; +// selectedFolder.Copy(iShowDir); +// TFileName startFolder; +// startFolder.Zero(); +// TInt types = AknCommonDialogsDynMem::EMemoryTypePhone | AknCommonDialogsDynMem::EMemoryTypeMMC |AknCommonDialogsDynMem::EMemoryTypeInternalMassStorage| AknCommonDialogsDynMem::EMemoryTypeRemote; +// +// HBufC *title = iCoeEnv->AllocReadResourceLC(R_PODCAST_SELECT_FOLDER); +// if (AknCommonDialogsDynMem::RunFolderSelectDlgLD (types, selectedFolder, +// startFolder, NULL, NULL, *title)) +// { +// _LIT(KPodcastsDir, "Podcasts"); +// TInt pos = selectedFolder.Find(KPodcastsDir); +// if (pos == KErrNotFound || pos != selectedFolder.Length()-9) +// { +// // append "Podcasts" if the folder isn't already called this +// selectedFolder.Append(KPodcastsDir); +// } +// +// if (selectedFolder[selectedFolder.Length()-1] != '\\') +// { +// selectedFolder.Append(_L("\\")); +// } +// +// iShowDir.Copy(selectedFolder); +// LoadSettingsL(); +// } +// CleanupStack::PopAndDestroy(title); +// } +// else { +// CAknSettingItemList::EditItemL(aIndex,aCalledFromMenu); +// } +// StoreSettingsL(); +// UpdateSettingVisibility(); DP("EditItemL END"); }