Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.8.x
-
None
Description
On my computer, I'm interfacing my IDE with assistant using the -enableremotecontrol argument.
It works fine, excepts that it's very slow to start. I've narrowed the problem in the MainWindow::checkInitState function.
in remote control mode, it's called several times. The function HelpEngineWrapper::instance().initialDocSetupDone(); is called several times too, connecting signals several times.
If I modify the start of the function this way :
MainWindow.cpp
void MainWindow::checkInitState() { TRACE_OBJ if (!m_cmdLine->enableRemoteControl()) { HelpEngineWrapper::instance().initialDocSetupDone(); return; } HelpEngineWrapper &helpEngine = HelpEngineWrapper::instance(); if (helpEngine.contentModel()->isCreatingContents() || helpEngine.indexModel()->isCreatingIndex()) { if (!m_connectedInitSignals) { HelpEngineWrapper::instance().initialDocSetupDone();
startup becomes normal again. I'm not sure this is the proper fix though.
Attachments
Issue Links
- duplicates
-
QTBUG-36850 When started via remote control, assistant updates index on startup every time
- Closed