Skip to content
Snippets Groups Projects
Commit fba514ac authored by Matthew Hansen's avatar Matthew Hansen Committed by Matt Hansen
Browse files

Start state machine after connecting start() signal

parent b01b2341
No related branches found
No related tags found
No related merge requests found
......@@ -159,10 +159,10 @@ Nav2Panel::Nav2Panel(QWidget * parent)
state_machine_.addState(resumed_);
state_machine_.setInitialState(pre_initial_);
state_machine_.start();
// delay starting initial thread until state machine has started or a race occurs
QObject::connect(&state_machine_, SIGNAL(started()), this, SLOT(startThread()));
state_machine_.start();
// Lay out the items in the panel
QVBoxLayout * main_layout = new QVBoxLayout;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment