diff options
author | David Robillard <d@drobilla.net> | 2022-08-23 23:42:34 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-23 23:42:34 -0400 |
commit | e225a5d1b7c127323163de1ad54a21fb7a56d00a (patch) | |
tree | 0e278e6125b904b44e3fc17d89b7ec302f0f5887 | |
parent | 32d657cb44631d4dcdbfd3a83e6de681d139b45c (diff) | |
download | jalv-e225a5d1b7c127323163de1ad54a21fb7a56d00a.tar.gz jalv-e225a5d1b7c127323163de1ad54a21fb7a56d00a.tar.bz2 jalv-e225a5d1b7c127323163de1ad54a21fb7a56d00a.zip |
Fix "preset" console command when "presets" hasn't been called
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | src/jalv_console.c | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -6,6 +6,7 @@ jalv (1.6.7) unstable; urgency=medium * Build Qt interface as C++14 * Change no-menu short option to m to avoid clash with jack-name * Clean up and modernize code + * Fix "preset" console command when "presets" hasn't been called * Fix MSVC build * Fix atom buffer alignment * Fix crash when running jalv without arguments @@ -22,7 +23,7 @@ jalv (1.6.7) unstable; urgency=medium * Support both rdfs:label and lv2:name for port group labels * Switch to meson build system - -- David Robillard <d@drobilla.net> Tue, 16 Aug 2022 21:02:29 +0000 + -- David Robillard <d@drobilla.net> Wed, 24 Aug 2022 03:42:13 +0000 jalv (1.6.6) stable; urgency=medium diff --git a/src/jalv_console.c b/src/jalv_console.c index 4d5f528..277f290 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -212,6 +212,7 @@ jalv_process_command(Jalv* jalv, const char* cmd) jalv_load_presets(jalv, jalv_print_preset, NULL); } else if (sscanf(cmd, "preset %1023[a-zA-Z0-9_:/-.#]\n", sym) == 1) { LilvNode* preset = lilv_new_uri(jalv->world, sym); + lilv_world_load_resource(jalv->world, preset); jalv_apply_preset(jalv, preset); lilv_node_free(preset); jalv_print_controls(jalv, true, false); |