From 5013724c0a98833b50ece75b13a3eeab12178a7e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 1 Jun 2019 10:27:01 +0200 Subject: Solve issue with nets/cells not visible on load --- common/command.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/command.cc b/common/command.cc index 242e5037..3813a380 100644 --- a/common/command.cc +++ b/common/command.cc @@ -244,11 +244,11 @@ int CommandHandler::executeMain(std::unique_ptr ctx) if (vm.count("json")) { std::string filename = vm["json"].as(); std::ifstream f(filename); - w.notifyChangeContext(); if (!parse_json_file(f, filename, w.getContext())) log_error("Loading design failed.\n"); customAfterLoad(w.getContext()); + w.notifyChangeContext(); w.updateLoaded(); } else if (vm.count("load")) { w.projectLoad(vm["load"].as()); -- cgit v1.2.3