# HG changeset patch # User Sebastian Brannstrom # Date 1278494940 -3600 # Node ID d15654dbe9b8144da8d0c724e850c4a4da4aed59 # Parent 004508c4f71485789252a9486fd4043de741dd6f Fix for bug 3169 - Podcatching failing to open due to missing DB diff -r 004508c4f714 -r d15654dbe9b8 engine/src/PodcastModel.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"); diff -r 004508c4f714 -r d15654dbe9b8 engine/src/SettingsEngine.cpp --- 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; }