summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2010-03-02 14:31:27 (GMT)
committerck <qt-info@nokia.com>2010-03-02 15:16:08 (GMT)
commitfbcfcea9bb5cf0ce39e5ce1fb9b0628930f034d1 (patch)
treed98abfbec5c0b4839417064664558d5f70f2a240 /tools
parent95087389919837fef920c6c06ccd34c3136c6b5e (diff)
downloadQt-fbcfcea9bb5cf0ce39e5ce1fb9b0628930f034d1.zip
Qt-fbcfcea9bb5cf0ce39e5ce1fb9b0628930f034d1.tar.gz
Qt-fbcfcea9bb5cf0ce39e5ce1fb9b0628930f034d1.tar.bz2
Assistant: Un-watch files at shutdown.
Not strictly needed, but it seems nicer to have a removePath() for every addPath(). Reviewed-by: kh1
Diffstat (limited to 'tools')
-rw-r--r--tools/assistant/tools/assistant/helpenginewrapper.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/assistant/tools/assistant/helpenginewrapper.cpp b/tools/assistant/tools/assistant/helpenginewrapper.cpp
index e21e95d..41ad633 100644
--- a/tools/assistant/tools/assistant/helpenginewrapper.cpp
+++ b/tools/assistant/tools/assistant/helpenginewrapper.cpp
@@ -167,6 +167,13 @@ HelpEngineWrapper::HelpEngineWrapper(const QString &collectionFile)
HelpEngineWrapper::~HelpEngineWrapper()
{
TRACE_OBJ
+ const QStringList &namespaces = d->m_helpEngine->registeredDocumentations();
+ foreach (const QString &nameSpace, namespaces) {
+ const QString &docFile
+ = d->m_helpEngine->documentationFileName(nameSpace);
+ d->m_qchWatcher->removePath(docFile);
+ }
+
delete d;
}