Changeset 1046 for trunk/tools/assistant


Ignore:
Timestamp:
Sep 2, 2011, 11:59:19 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

Assistant: Fix signal recursion at startup in remote control mode.

The index update process was restarting once finished until both the
contents and the index would happen to be created at the same time.
This caused a significant delay at startup (this process could never end,
actually) accompanied by the 100% CPU load during which remote
commands could not be processed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/assistant/tools/assistant/mainwindow.cpp

    r846 r1046  
    367367{
    368368    TRACE_OBJ
    369     HelpEngineWrapper::instance().initialDocSetupDone();
     369    if (!m_connectedInitSignals) {
     370        // initiate help engine setup only once
     371        HelpEngineWrapper::instance().initialDocSetupDone();
     372    }
    370373    if (!m_cmdLine->enableRemoteControl())
    371374        return;
     
    385388            disconnect(helpEngine.contentModel(), 0, this, 0);
    386389            disconnect(helpEngine.indexModel(), 0, this, 0);
     390
    387391        }
    388392        emit initDone();
Note: See TracChangeset for help on using the changeset viewer.