# HG changeset patch # User Sebastian Brannstrom # Date 1288302104 -3600 # Node ID 5902e8f443e29bb9bf69f39e6d6ab9f11b92c351 # Parent 56d23cf607953ec4715dd089740f8096aa121e38 Fix for DB being read only when template is copied from Z: diff -r 56d23cf60795 -r 5902e8f443e2 engine/src/PodcastModel.cpp --- a/engine/src/PodcastModel.cpp Thu Oct 28 22:27:12 2010 +0100 +++ b/engine/src/PodcastModel.cpp Thu Oct 28 22:41:44 2010 +0100 @@ -330,6 +330,10 @@ DP1("Copy template DB to: %S", &dbFileName); BaflUtils::CopyFile(iFsSession, dbTemplate,dbFileName); + + // important to set this file to not be read only if copying from Z: + iFsSession.SetAtt(dbFileName, 0, KEntryAttReadOnly); + iIsFirstStartup = ETrue; DP("CPodcastModel::ResetDB END"); }