diff options
Diffstat (limited to 'common/command.cc')
-rw-r--r-- | common/command.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<Context> ctx) if (vm.count("json")) { std::string filename = vm["json"].as<std::string>(); 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<std::string>()); |