diff options
author | Gergely Risko <gergely+context@risko.hu> | 2009-11-04 16:10:34 +0200 |
---|---|---|
committer | Gergely Risko <gergely+context@risko.hu> | 2009-11-04 16:10:34 +0200 |
commit | 1b72fc66b677cece11b70d576c4e86ef6dcf6b1f (patch) | |
tree | 462b1569bba9378c077ca12e212b1a95fccad94c | |
parent | c662d9fb661e443383eabda9f919737c38d0e62f (diff) | |
parent | f105191028d2c1bcb6991d0ffee7dcbb8c9ea4c8 (diff) |
Merge commit 'origin/master' into cltool2
-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(); |