diff options
author | gatecat <gatecat@ds0.me> | 2021-06-07 21:02:43 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-06-07 21:07:17 +0100 |
commit | 875004d300eb4b85e13c026378e39b31b6922f93 (patch) | |
tree | dcaa0f2265d32916578191b5c1ad9f5df104d59c /common/command.h | |
parent | d946cfd265fd137f71ffe40e540ec1d8e5451bd8 (diff) | |
download | nextpnr-875004d300eb4b85e13c026378e39b31b6922f93.tar.gz nextpnr-875004d300eb4b85e13c026378e39b31b6922f93.tar.bz2 nextpnr-875004d300eb4b85e13c026378e39b31b6922f93.zip |
gui: Don't destroy context when loading JSON
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common/command.h')
-rw-r--r-- | common/command.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/command.h b/common/command.h index ba606ea2..c82bcd3a 100644 --- a/common/command.h +++ b/common/command.h @@ -37,7 +37,7 @@ class CommandHandler virtual ~CommandHandler(){}; int exec(); - std::unique_ptr<Context> load_json(std::string filename); + void load_json(Context *ctx, std::string filename); void clear(); protected: |