From 9c9b32f897817d74c7a7be9d896d3142ca027988 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Mon, 31 Oct 2011 09:46:38 +0000 Subject: [PATCH] + fixed a regression I added one week ago --- src/common/kiwix/manager.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/common/kiwix/manager.cpp b/src/common/kiwix/manager.cpp index a50b4724a..9a15ba463 100644 --- a/src/common/kiwix/manager.cpp +++ b/src/common/kiwix/manager.cpp @@ -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;