Fix for bug 3169 - Podcatching failing to open due to missing DB
authorSebastian Brannstrom <sebastianb@symbian.org>
Wed, 07 Jul 2010 10:29:00 +0100
changeset 162 d15654dbe9b8
parent 159 004508c4f714
child 163 f94dbd678dda
Fix for bug 3169 - Podcatching failing to open due to missing DB
engine/src/PodcastModel.cpp
engine/src/SettingsEngine.cpp
--- a/engine/src/PodcastModel.cpp	Tue Jul 06 03:44:46 2010 +0530
+++ b/engine/src/PodcastModel.cpp	Wed Jul 07 10:29:00 2010 +0100
@@ -312,9 +312,15 @@
 
 	// copy template to new DB
 	TFileName dbTemplate;
-	dbTemplate.Copy(iSettingsEngine->PrivatePath());
+	TFileName temp;
+	dbTemplate.Copy(_L("z:"));
+	temp.Copy(iSettingsEngine->PrivatePath());
+	dbTemplate.Append(temp);
 	dbTemplate.Append(KDBTemplateFileName);
-
+	
+	DP1("Copy template DB from: %S", &dbTemplate);
+	DP1("Copy template DB to: %S", &dbFileName);
+	
 	BaflUtils::CopyFile(iFsSession, dbTemplate,dbFileName);
 	iIsFirstStartup = ETrue;
 	DP("CPodcastModel::ResetDB END");
--- a/engine/src/SettingsEngine.cpp	Tue Jul 06 03:44:46 2010 +0530
+++ b/engine/src/SettingsEngine.cpp	Wed Jul 07 10:29:00 2010 +0100
@@ -204,8 +204,11 @@
 TFileName CSettingsEngine::DefaultFeedsFileName()
 	{
 	TFileName defaultFeeds;
-	defaultFeeds.Append(PrivatePath());
-	defaultFeeds.Append(KDefaultFeedsFile);
+	TFileName temp;
+	defaultFeeds.Copy(_L("z:"));
+	temp.Append(PrivatePath());
+	temp.Append(KDefaultFeedsFile);
+	defaultFeeds.Append(temp);
 	DP1("Default feeds file: %S", &defaultFeeds);
 	return defaultFeeds;
 	}