aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_qt.cpp
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-07-10 12:55:45 +0200
committerDavid Robillard <d@drobilla.net>2016-08-31 23:51:31 -0400
commit0a0037a11e453ad4de7a15c1031670ceb5667db2 (patch)
treef6642a5e7519b4b188724d57eeb1fcaee1562a76 /src/jalv_qt.cpp
parent7e3af735cea4fdefcd4483b1c92b2762ad6672dc (diff)
downloadjalv-0a0037a11e453ad4de7a15c1031670ceb5667db2.tar.gz
jalv-0a0037a11e453ad4de7a15c1031670ceb5667db2.tar.bz2
jalv-0a0037a11e453ad4de7a15c1031670ceb5667db2.zip
Discover presence of UI before jack_activate
jalv.has_ui should be set before jack_activate. If not, patch:Get message may be without effect and parameter replies never be sent from within jack process callback, as the latter may run before the corresponding UI logic (e.g. with jalv.has_ui still being false).
Diffstat (limited to 'src/jalv_qt.cpp')
-rw-r--r--src/jalv_qt.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp
index 003b548..178db16 100644
--- a/src/jalv_qt.cpp
+++ b/src/jalv_qt.cpp
@@ -673,6 +673,12 @@ build_control_widget(Jalv* jalv)
return grid;
}
+bool
+jalv_discover_ui(Jalv* jalv)
+{
+ return true;
+}
+
int
jalv_open_ui(Jalv* jalv)
{
@@ -685,7 +691,6 @@ jalv_open_ui(Jalv* jalv)
quit_action->setShortcuts(QKeySequence::Quit);
quit_action->setStatusTip("Quit Jalv");
file_menu->addAction(quit_action);
- jalv->has_ui = true;
jalv_load_presets(jalv, add_preset_to_menu, presets_menu);