diff --git a/plugins/gui/src/graph_widget/graph_context_manager.cpp b/plugins/gui/src/graph_widget/graph_context_manager.cpp index 2e7c97d34c2..54f1e6fef1b 100644 --- a/plugins/gui/src/graph_widget/graph_context_manager.cpp +++ b/plugins/gui/src/graph_widget/graph_context_manager.cpp @@ -685,9 +685,10 @@ namespace hal int visibleFlag = 1; // default to visible before flag was invented if (jsonView.contains("visible")) visibleFlag = jsonView["visible"].toInt(); + + u32 viewParentId = 0; if (!jsonView.contains("parentId")) - continue; - u32 viewParentId = jsonView["parentId"].toInt(); + viewParentId = jsonView["parentId"].toInt(); BaseTreeItem* viewParent = mContextTreeModel->getRootItem(); diff --git a/plugins/netlist_simulator_study/src/netlist_simulator_study.cpp b/plugins/netlist_simulator_study/src/netlist_simulator_study.cpp index 8852bd26b15..2cf454dac1d 100644 --- a/plugins/netlist_simulator_study/src/netlist_simulator_study.cpp +++ b/plugins/netlist_simulator_study/src/netlist_simulator_study.cpp @@ -216,7 +216,15 @@ namespace hal m_simul_controller.get()->simulate_only_probes(probes); - m_simul_controller.get()->emit_run_simulation(); + m_simul_controller.get()->run_simulation(); + + while (m_simul_controller.get()->get_simulation_engine()->get_state() > 0) + { + std::cerr << "simulation running" << std::endl; + sleep(1); + } + + std::cerr << "simulation result " << (int) m_simul_controller.get()->get_simulation_engine()->get_state() << std::endl; return true; } @@ -416,4 +424,4 @@ namespace hal } } -} // namespace hal \ No newline at end of file +} // namespace hal