Skip to content
Snippets Groups Projects
Commit 3fabe503 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

upd SimulationView state

parent 6ee1e1ed
No related branches found
No related tags found
1 merge request!2820Upd SimulationView when models change
Pipeline #185046 passed
......@@ -263,7 +263,10 @@ SimulationView::SimulationView()
});
//... Connect external change of state
connect(gDoc.get(), &ProjectDocument::reopened, [this] { updateOptions(); });
connect(gDoc.get(), &ProjectDocument::reopened, this, &SimulationView::updateOptions);
connect(gDoc->datafiles(), &DatafilesSet::setChanged, this, &SimulationView::updateOptions);
connect(gDoc->instruments(), &InstrumentsSet::setChanged, this, &SimulationView::updateOptions);
connect(gDoc->samples(), &SamplesSet::setChanged, this, &SimulationView::updateOptions);
}
void SimulationView::updateOptions()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment