summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2014-09-19 13:52:42 +0400
committerShawn Rutledge <shawn.rutledge@digia.com>2014-10-13 11:42:59 +0200
commitd55407822eefbc05f7d8bb44c53b057332b5b399 (patch)
treebaae81ea0f89e7091a4ff032cb2c1ef20b2752c6 /src
parent8f03d0b45be29bc75fb54874ab6bc79e92d98da4 (diff)
downloadqttools-d55407822eefbc05f7d8bb44c53b057332b5b399.tar.gz
Assistant: Fix index updating on startup in the remote control mode
HelpEngineWrapper::initialDocSetupDone() should be called only once right after the initialization of the help models. Calling it on every small update leads to recursion. Task-number: QTBUG-36850 Change-Id: I16cae03f08bbc9a19ec9298c84c602a4046dce93 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/assistant/assistant/mainwindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/assistant/assistant/mainwindow.cpp b/src/assistant/assistant/mainwindow.cpp
index 3a3c0e8e9..491929e0b 100644
--- a/src/assistant/assistant/mainwindow.cpp
+++ b/src/assistant/assistant/mainwindow.cpp
@@ -484,9 +484,10 @@ void MainWindow::qtDocumentationInstalled()
void MainWindow::checkInitState()
{
TRACE_OBJ
- HelpEngineWrapper::instance().initialDocSetupDone();
- if (!m_cmdLine->enableRemoteControl())
+ if (!m_cmdLine->enableRemoteControl()) {
+ HelpEngineWrapper::instance().initialDocSetupDone();
return;
+ }
HelpEngineWrapper &helpEngine = HelpEngineWrapper::instance();
if (helpEngine.contentModel()->isCreatingContents()
@@ -503,6 +504,7 @@ void MainWindow::checkInitState()
disconnect(helpEngine.contentModel(), 0, this, 0);
disconnect(helpEngine.indexModel(), 0, this, 0);
}
+ HelpEngineWrapper::instance().initialDocSetupDone();
emit initDone();
}
}