summaryrefslogtreecommitdiffstats
path: root/tools/assistant/lib/qhelpengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/assistant/lib/qhelpengine.cpp')
-rw-r--r--tools/assistant/lib/qhelpengine.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/assistant/lib/qhelpengine.cpp b/tools/assistant/lib/qhelpengine.cpp
index 96cf0fd..e8ae31b 100644
--- a/tools/assistant/lib/qhelpengine.cpp
+++ b/tools/assistant/lib/qhelpengine.cpp
@@ -75,14 +75,15 @@ void QHelpEnginePrivate::init(const QString &collectionFile,
{
QHelpEngineCorePrivate::init(collectionFile, helpEngineCore);
- contentModel = new QHelpContentModel(this);
- indexModel = new QHelpIndexModel(this);
-
- connect(helpEngineCore, SIGNAL(setupFinished()),
- this, SLOT(applyCurrentFilter()));
- connect(helpEngineCore, SIGNAL(currentFilterChanged(QString)),
- this, SLOT(applyCurrentFilter()));
-
+ if (!contentModel)
+ contentModel = new QHelpContentModel(this);
+ if (!indexModel)
+ indexModel = new QHelpIndexModel(this);
+
+ connect(helpEngineCore, SIGNAL(setupFinished()), this,
+ SLOT(applyCurrentFilter()));
+ connect(helpEngineCore, SIGNAL(currentFilterChanged(QString)), this,
+ SLOT(applyCurrentFilter()));
}
void QHelpEnginePrivate::applyCurrentFilter()