application/src/PodcastSettingsView.cpp
changeset 106 83752b9e3cb6
parent 105 236022094302
child 107 af6475fdf8d6
--- a/application/src/PodcastSettingsView.cpp	Sat Apr 03 14:54:19 2010 +0100
+++ b/application/src/PodcastSettingsView.cpp	Sat Apr 03 16:03:09 2010 +0100
@@ -301,11 +301,18 @@
 					startFolder, NULL, NULL, *title))
 				{
 				_LIT(KPodcastsDir, "Podcasts");
-				if (selectedFolder.Find(KPodcastsDir) != selectedFolder.Length()-9)
+				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();
 				}