diff options
author | Michael Dominic K <mdk@codethink.co.uk> | 2009-11-04 13:20:39 +0100 |
---|---|---|
committer | Michael Dominic K <mdk@codethink.co.uk> | 2009-11-04 13:20:39 +0100 |
commit | f105191028d2c1bcb6991d0ffee7dcbb8c9ea4c8 (patch) | |
tree | b1b863b776db80c68dcea7ba17287d46990cb94c | |
parent | d7ecb55d9d292983b9aa475718b48d5b6013906f (diff) |
Don't scream when core xml declarations missing.
-rw-r--r-- | libcontextsubscriber/src/infoxmlbackend.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libcontextsubscriber/src/infoxmlbackend.cpp b/libcontextsubscriber/src/infoxmlbackend.cpp index d7dfb460..65083c1c 100644 --- a/libcontextsubscriber/src/infoxmlbackend.cpp +++ b/libcontextsubscriber/src/infoxmlbackend.cpp @@ -211,8 +211,12 @@ void InfoXmlBackend::regenerateKeyDataList() if (watchedFiles.size() > 0) watcher.removePaths(watchedFiles); - contextDebug() << F_XML << "Reading core declarations from:" << InfoXmlBackend::coreDeclPath(); - readKeyDataFromXml (InfoXmlBackend::coreDeclPath()); + if (QFile(InfoXmlBackend::coreDeclPath()).exists()) { + contextDebug() << F_XML << "Reading core declarations from:" << InfoXmlBackend::coreDeclPath(); + readKeyDataFromXml (InfoXmlBackend::coreDeclPath()); + } else { + contextDebug() << F_XML << "Core declarations file" << InfoXmlBackend::coreDeclPath() << "does not exist."; + } contextDebug() << F_XML << "Re-reading xml contents from" << InfoXmlBackend::registryPath(); |