+ fixed a regression I added one week ago

This commit is contained in:
kelson42 2011-10-31 09:46:38 +00:00
parent 5bd84c8db7
commit 9c9b32f897
1 changed files with 7 additions and 4 deletions

View File

@ -99,10 +99,13 @@ namespace kiwix {
if (result) {
this->parseXmlDom(doc, readOnly, path);
if (!readOnly) {
this->writableLibraryPath = path;
}
}
/* This has to be set (although if the file does not exists) to be
* able to know where to save the library if new content are
* available */
if (!readOnly) {
this->writableLibraryPath = path;
}
return true;