engine/src/PodcastModel.cpp
branchRCL_3
changeset 282 cf3842290671
parent 162 d15654dbe9b8
child 300 5902e8f443e2
--- a/engine/src/PodcastModel.cpp	Sat Oct 23 16:38:32 2010 +0100
+++ b/engine/src/PodcastModel.cpp	Sat Oct 23 18:22:27 2010 +0100
@@ -105,6 +105,7 @@
 		
 		if (err != KErrNone)
 			{
+			DP1("err=%d", err);
 			Panic(EPodcatcherPanicDB);
 			}
 		
@@ -310,6 +311,7 @@
 		BaflUtils::DeleteFile(iFsSession, dbFileName);
 		}
 
+#ifdef ENABLE_MPX_INTEGRATION
 	// copy template to new DB
 	TFileName dbTemplate;
 	TFileName temp;
@@ -317,6 +319,12 @@
 	temp.Copy(iSettingsEngine->PrivatePath());
 	dbTemplate.Append(temp);
 	dbTemplate.Append(KDBTemplateFileName);
+# else
+	// copy template to new DB
+	TFileName dbTemplate;
+	dbTemplate.Copy(iSettingsEngine->PrivatePath());
+	dbTemplate.Append(KDBTemplateFileName);
+#endif
 	
 	DP1("Copy template DB from: %S", &dbTemplate);
 	DP1("Copy template DB to: %S", &dbFileName);
@@ -340,7 +348,8 @@
 	TFileName dbFileName;
 	dbFileName.Copy(iSettingsEngine->PrivatePath());
 	dbFileName.Append(KDBFileName);
-		
+	
+	DP1("dbFileName=%S", &dbFileName);
 	if (!BaflUtils::FileExists(iFsSession, dbFileName))
 		{
 		User::Leave(KErrNotFound);