engine/src/PodcastModel.cpp
changeset 56 c5cd47bc11ef
parent 44 f6f9647922ba
child 67 9c24c921ec35
child 96 a8538f50e2ba
--- a/engine/src/PodcastModel.cpp	Sat Mar 13 18:48:25 2010 +0000
+++ b/engine/src/PodcastModel.cpp	Sat Mar 13 22:00:39 2010 +0000
@@ -239,6 +239,7 @@
 
 sqlite3* CPodcastModel::DB()
 {
+	DP("CPodcastModel::DB BEGIN");
 	if (iDB == NULL) {		
 		TFileName dbFileName;
 		iFsSession.PrivatePath(dbFileName);
@@ -256,7 +257,8 @@
 		
 		TBuf8<KMaxFileName> filename8;
 		filename8.Copy(dbFileName);
-		int rc = rc = sqlite3_open((const char*) filename8.PtrZ(), &iDB);
+		DP("Before sqlite3_open");
+		int rc = sqlite3_open((const char*) filename8.PtrZ(), &iDB);
 		if( rc != SQLITE_OK){
 			DP("Error loading DB");
 			User::Panic(_L("Podcatcher"), 10);
@@ -264,6 +266,7 @@
 
 
 	}
+	DP("CPodcastModel::DB END");
 	return iDB;
 }